Just wanna check up on something ...
Personally, I've never connected to a database via ODBC. However, just wanna check:
You say you used the command
Set db = DBEngine.Workspaces(0).OpenDatabase("
dbsourcename", ,"DSN=
dbsourcename;UID=
MyUID;PWD=
Mypassw")
to connect to the database. You *DID* replace the items in bold with your own variables, right? Just making sure!
Also ... one more thing ... between dbsourcename and DSN=, you have two commas. Is it supposed to be like that. You use a ; to separate all of the other parameters.
Just a lil syntax check you may wanna look at!
Administrator
Staff Writer
Reputation Points: 1422
Solved Threads: 162
The Queen of DaniWeb
Online 13,645 posts
since Feb 2002