Using the Data Control to control ODBC database ? 
Author Message
 Using the Data Control to control ODBC database ?

Hi,

        Is it possible to use the VB Data Control to access
        the ODBC database ?   If we can use VB Data Control
        to access ODBC database, is that meant that it is
        possible to develep a Front End without any VB ODBC
        programming (ie, no need to use VB ODBC APIs) ?  
        If it is true, can I simply Open an ODBC database
        and the RecordSet and assign it into the property
        inside the Data Control.

        Thanks,

        Jerry.
--
-
--
---
-------------------------------------------------------------------

Dept. of Computer Science,      Off.Tel:  (852)-2358-8836/2358-7028
HKUST, Clear Water Bay Road,    Off.Fax:  (852)-2358-1477
Hong Kong.                      Pager:    (852)-7131-3111 Call 9977



Mon, 01 Mar 1999 03:00:00 GMT  
 Using the Data Control to control ODBC database ?



You need to use the RDC (Remote Data Control).

h.

Quote:
>Hi,

>    Is it possible to use the VB Data Control to access
>    the ODBC database ?   If we can use VB Data Control
>    to access ODBC database, is that meant that it is
>    possible to develep a Front End without any VB ODBC
>    programming (ie, no need to use VB ODBC APIs) ?  
>    If it is true, can I simply Open an ODBC database
>    and the RecordSet and assign it into the property
>    inside the Data Control.

>    Thanks,

>    Jerry.
>--
>-
>--
>---
>-------------------------------------------------------------------

>Dept. of Computer Science,  Off.Tel:  (852)-2358-8836/2358-7028
>HKUST, Clear Water Bay Road,    Off.Fax:  (852)-2358-1477
>Hong Kong.                  Pager:    (852)-7131-3111 Call 9977

<some witty rejoinder goes here>


Tue, 02 Mar 1999 03:00:00 GMT  
 Using the Data Control to control ODBC database ?

Quote:

> Hi,

>         Is it possible to use the VB Data Control to access
>         the ODBC database ?   If we can use VB Data Control
>         to access ODBC database, is that meant that it is
>         possible to develep a Front End without any VB ODBC
>         programming (ie, no need to use VB ODBC APIs) ?
>         If it is true, can I simply Open an ODBC database
>         and the RecordSet and assign it into the property
>         inside the Data Control.

>         Thanks,

>         Jerry.
> --
> -
> --
> ---
> -------------------------------------------------------------------

> Dept. of Computer Science,      Off.Tel:  (852)-2358-8836/2358-7028
> HKUST, Clear Water Bay Road,    Off.Fax:  (852)-2358-1477
> Hong Kong.                      Pager:    (852)-7131-3111 Call 9977

Yes

Set the connect property and the recordsource and you're away, eg

data1.connect = "DSN=WLC;UID=loginname;PWD=password;"
data1.recordsource = "select * frmp emp order by ename"

This is assuming that you have set up the ODBC driver called WLC and any
other underlying protocols,etc (eg for Oracle you generally need SQL*NET
and then TCP/IP, etc)

Greg Vinall
Systems Analyst
NSW Dept Land and Water Conservation



Sun, 07 Mar 1999 03:00:00 GMT  
 Using the Data Control to control ODBC database ?



Quote:

>> Hi,

>>         Is it possible to use the VB Data Control to access
>>         the ODBC database ?   If we can use VB Data Control
>>         to access ODBC database, is that meant that it is
>>         possible to develep a Front End without any VB ODBC
>>         programming (ie, no need to use VB ODBC APIs) ?
>>         If it is true, can I simply Open an ODBC database
>>         and the RecordSet and assign it into the property
>>         inside the Data Control.

>>         Thanks,

>>         Jerry.
>> --
>> -
>> --
>> ---
>> -------------------------------------------------------------------

>> Dept. of Computer Science,      Off.Tel:  (852)-2358-8836/2358-7028
>> HKUST, Clear Water Bay Road,    Off.Fax:  (852)-2358-1477
>> Hong Kong.                      Pager:    (852)-7131-3111 Call 9977

>Yes

>Set the connect property and the recordsource and you're away, eg

>data1.connect = "DSN=WLC;UID=loginname;PWD=password;"
>data1.recordsource = "select * frmp emp order by ename"

>This is assuming that you have set up the ODBC driver called WLC and any
>other underlying protocols,etc (eg for Oracle you generally need SQL*NET
>and then TCP/IP, etc)

>Greg Vinall
>Systems Analyst
>NSW Dept Land and Water Conservation

Hi,
I am using the data control with ODBC conecting to Sybase SQL anywhere.
I use it to load a few grids with some Icons, but once the recordset is
closed, it doesn't drop the connection to Sybase.. This is a bummer as I
only have a 32 connection license.

Any Ideas ?

C.

--

--
Craig P. S{*filter*}
Rugby,
Warwickshire,
England



Mon, 08 Mar 1999 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Data control update ODBC database

2. Help Help Help with Data Control and ODBC databases

3. Using ADO Data Control on User Control as Data Source

4. Create User Control as Data Source Using ADO Data Control

5. Problfemsq using ODBC connect and data control...

6. No values with Data-Bound Control using ODBC direct

7. Using VB5 to import data to access without using the Data control

8. using ordinairy access to database without data control

9. VB6 and Access 2000 Database using data control

10. SIMPLE HELP NEEDED - Connecting to Databases - not using the Data Control

11. Using MS Data Control DAO to access a password protected database

12. Opening a database without using a DATA Control ?

 

 
Powered by phpBB® Forum Software