G
Guest
Hi I want to connect to a data file that has a database password "hello"
I can manually link to a table in this database and using the debug window,
Debug.Print tdf.Connect returns
MS Access;PWD=hello;DATABASE=T:\DHLdata.mdb
Now using the line
Set gDBData = Workspaces(0).OpenDatabase("T:\DHLdata.mdb", , , "pwd=hello")
fyi: Public gDBData As dao.Database
I get error 3031, Not a valid password
I'm sure that this is really basic... what is the correct syntax for this?
Many thanks, Jonathan
I can manually link to a table in this database and using the debug window,
Debug.Print tdf.Connect returns
MS Access;PWD=hello;DATABASE=T:\DHLdata.mdb
Now using the line
Set gDBData = Workspaces(0).OpenDatabase("T:\DHLdata.mdb", , , "pwd=hello")
fyi: Public gDBData As dao.Database
I get error 3031, Not a valid password
I'm sure that this is really basic... what is the correct syntax for this?
Many thanks, Jonathan