G
George
Hi, I am working on an Access form, which is in an Access database.
On the form, I need open a table. But I have no idea how to set the
connection string.
The working environment is Windows XP Home Edition. Access is MS Office
2002.
I tried the following code:
Dim cnn As Connection
Set cnn = New ADODB.Connection
cnn.ConnectionString = "DSN=c:/George/Database/students;UID=sa;PWD=pwd;"
cnn.Open
When open, the error message is:
"Data source name not found and no default driver specified."
what should I do in this circumstance?
Thanks!
George
On the form, I need open a table. But I have no idea how to set the
connection string.
The working environment is Windows XP Home Edition. Access is MS Office
2002.
I tried the following code:
Dim cnn As Connection
Set cnn = New ADODB.Connection
cnn.ConnectionString = "DSN=c:/George/Database/students;UID=sa;PWD=pwd;"
cnn.Open
When open, the error message is:
"Data source name not found and no default driver specified."
what should I do in this circumstance?
Thanks!
George