LordOfCode
Programmer
I've working the past two years with Visual FoxPro, now I'm learning Visual Basic.
I've been using ADO in an aplication I'm buiding. I created a dataenvironment and an initial conection.
In the Login form I ask user for his user name and password and open the ADO connection with that information.
Now I want to create a form to access and modify some data in the database. I try to create a DataCombo and DataList.
I realized they requiere a Data Control so I added a Microsoft ADO Data Control (Adodc) to my form.
The problem is that the Adodc control requieres data to make a completely new connection, I can use a connect string or ODBC as far as I can see. However what I want to do is to use the same connection I set at the begining of the application when the user logged in.
Any advice might be helpful. Thanks in advance!
Edwin Dalorzo
edalorzo@hotmail.com
I've been using ADO in an aplication I'm buiding. I created a dataenvironment and an initial conection.
In the Login form I ask user for his user name and password and open the ADO connection with that information.
Now I want to create a form to access and modify some data in the database. I try to create a DataCombo and DataList.
I realized they requiere a Data Control so I added a Microsoft ADO Data Control (Adodc) to my form.
The problem is that the Adodc control requieres data to make a completely new connection, I can use a connect string or ODBC as far as I can see. However what I want to do is to use the same connection I set at the begining of the application when the user logged in.
Any advice might be helpful. Thanks in advance!
Edwin Dalorzo
edalorzo@hotmail.com