J
Jason
Hi,
Where should i place the following ado-connection info if i want to call it
from every form i create.
For testing purposes i used the code in the form's module and it worked.
Here is the code:
Dim cnn As ADODB.Connection
Set cnn = New ADODB.Connection
With cnn
.Provider = "sqloledb"
.Properties("Data Source") = "local"
.Properties("Initial Catalog") = "NEW"
.Properties("User ID") = "sa"
.Properties("Password") = "password"
End With
Where should i place the following ado-connection info if i want to call it
from every form i create.
For testing purposes i used the code in the form's module and it worked.
Here is the code:
Dim cnn As ADODB.Connection
Set cnn = New ADODB.Connection
With cnn
.Provider = "sqloledb"
.Properties("Data Source") = "local"
.Properties("Initial Catalog") = "NEW"
.Properties("User ID") = "sa"
.Properties("Password") = "password"
End With