Results 1 to 2 of 2

Thread: Strange Password Problem using DAO

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2000
    Posts
    18

    Question

    I am trying to open an encrypted, password protected database.

    I first password protected it my database.

    My program opened the database fine.

    Then I encrypted it.

    after that my program tries to open the database and I get a wrong password error message but...

    IT STILL OPENS THE DATABASE!!!???

    whats wrong here?

    here is my code:

    Dim Pass As String
    Pass = ";pwd=hurga"
    Set WS = Workspaces(0)
    Set DB = DBEngine.OpenDatabase("\\munichbdc01\temp\test\mdb\quotemainverschl.mdb", False, False, Pass)
    Trying to use VB 5

  2. #2

    Thread Starter
    Junior Member
    Join Date
    Mar 2000
    Posts
    18

    Smile

    I just figured it out:

    It looks like you have to encrypt your database first and then set the password.

    My DAO Code is working fine now.
    Trying to use VB 5

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width