Bud
December 14th, 1999, 09:49 AM
I'm pretty new to VB programming, so I hope this isn't a totally stupid question!
Anyways, I am writing an application to a SQL Server database and have created a login screen to get the username and password for the database. I use the username and password to create a connection string and placed it in the variable strConnectString. The question is: how do I use this variable strConnectString in an ADO Data Control? I have tried placing it in the properties for the ADO Data Control but it doesn't work. I figure I'll have to put in some area of code, but where? I don't want to have to hard code the username and password in the ADO Data Control properties.
Any help most gratefully appreciated!
Bud
Anyways, I am writing an application to a SQL Server database and have created a login screen to get the username and password for the database. I use the username and password to create a connection string and placed it in the variable strConnectString. The question is: how do I use this variable strConnectString in an ADO Data Control? I have tried placing it in the properties for the ADO Data Control but it doesn't work. I figure I'll have to put in some area of code, but where? I don't want to have to hard code the username and password in the ADO Data Control properties.
Any help most gratefully appreciated!
Bud