connection string

reburton

Registered User.
Local time
Today, 01:14
Joined
Nov 4, 2013
Messages
46
Hi,
I am trying to learn how to use ADO and I am getting an error message about the connection string I am using. I adapted it from an example found in WROX's "Beginning Access 2007 VBA". All of the examples to this point have worked fine but this one hangs up on the connection string. Attached is a screenshot of the error message with the code in question.
Can you tell me if there is an error in the connection string? I found out that "DataSource" should read "Data Source", but changing it made no difference. It hangs on the line:
"cnADO.Open strConnection".

ConnectionString.jpg

I hope I did that right!
Thanks in advance!
 
Last edited:
Hi,
Posting again because my error message changed. It still hangs on the connection string, though. "cnADO.Open strConnection" to be exact.
ConnectionString2.png
Hope somebody can help me with this, what I have found on line doesn't help much. :confused:
 

Users who are viewing this thread

Back
Top Bottom