Give this fragment a try.
dim dbs as String
dbs = "Microsoft.Jet.OLEDB.4.0;Persist Security Info=False;Jet OLEDB:Database Password=" & mypassword
It is the general form I use. Don't forget that the spaces in the string are important.
jimml
VB Programmer
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.