F
franky
I'm attempting to connect to a password protected MS Access database. The
following line works:
Set dbLink = DBEngine(0).OpenDatabase("C:\junk\Media_be1.mdb", False, False,
"MS Access;PWD=test")
However, if I try putting the database path in a variable called strNewPath
and setting the OpenDatabase method to this new database path I get an error:
strDBPath = strNewPath & """" & ", False, False, " & """" & "MS
Access;PWD=test"
Set dbLink = DBEngine(0).OpenDatabase(strDBPath)
I get an invalid file name error. How should the varible string look like
for the OpenDatabase method for a password protected MS Access database?
I've tried so many different ways and still unable to connect.
Thanks in advance!
following line works:
Set dbLink = DBEngine(0).OpenDatabase("C:\junk\Media_be1.mdb", False, False,
"MS Access;PWD=test")
However, if I try putting the database path in a variable called strNewPath
and setting the OpenDatabase method to this new database path I get an error:
strDBPath = strNewPath & """" & ", False, False, " & """" & "MS
Access;PWD=test"
Set dbLink = DBEngine(0).OpenDatabase(strDBPath)
I get an invalid file name error. How should the varible string look like
for the OpenDatabase method for a password protected MS Access database?
I've tried so many different ways and still unable to connect.
Thanks in advance!