
Accessing Access DB with password using VB 6.0
I have found that all parameters are required if the password is used. You
could try entering the default 'False' or 'True' after appis in the
opendatabase statement.
Here is one that I use:
Set db = OpenDatabase(sFileName, False, False, ;pwd=12345")
Cheers,
Larry Rebich
www.buygold.net
Voice: 760-771-4730, Fax: 760-771-4732
79685 Northwood, La Quinta, CA 92253
>I need to access an Access 97 DB with the password: word
>This is the string I have been trying:
>Set dbsfence = OpenDatabase(appis, , False, "Microsoft Jet;pwd=word")
>Where appis is the full path and name of Database. The error I get says
>"password is invaild" or real close. I have tried several variations with
no
>luck.
>This string:
>Set dbsfence = OpenDatabase(appis)
>worked fine till I added the password to the database.
>Please Help!
>Christopher Stubblefield