M
Michael J. Malinsky
I found this code from Microsoft:
Set dbs = wrkJet.OpenDatabase("", False, False,_
"ODBC;DSN=MS Access Database;" _
& "UID=admin;PWD=password;DATABASE=NewDB")
which opens a database. The problem is that it keeps opening a Select
Database dialog box which requires me to select the database. The database
name is NewDB and is included in the arguments for the OpenDatabase method
so I don't understand why the dialog asking me to select the database is
popping up. I've tried using the entire path, using the dbDriverNoPrompt
(and the other dbDriver options) to no avail.
Any help would be appreciated.
TIA
--
Michael J. Malinsky
Pittsburgh, PA
"I was gratified to be able to answer promptly,
and I did. I said I didn't know." -- Mark Twain
Set dbs = wrkJet.OpenDatabase("", False, False,_
"ODBC;DSN=MS Access Database;" _
& "UID=admin;PWD=password;DATABASE=NewDB")
which opens a database. The problem is that it keeps opening a Select
Database dialog box which requires me to select the database. The database
name is NewDB and is included in the arguments for the OpenDatabase method
so I don't understand why the dialog asking me to select the database is
popping up. I've tried using the entire path, using the dbDriverNoPrompt
(and the other dbDriver options) to no avail.
Any help would be appreciated.
TIA
--
Michael J. Malinsky
Pittsburgh, PA
"I was gratified to be able to answer promptly,
and I did. I said I didn't know." -- Mark Twain