Results 1 to 3 of 3
  1. #1
    Join Date
    May 2007
    Posts
    37

    Unanswered: Not a valid password. (Error 3031)

    Created an Access database and program standalone, that are splited, and the tables are linked to the program.
    I've setup a password on the database tabes.
    When I open the program I get "Not a valid password. (Error 3031)".
    How can I get over this problem and still have a password set?

  2. #2
    Join Date
    Jan 2007
    Location
    UK
    Posts
    11,434
    Provided Answers: 10
    Without more information this is a stab in the dark...

    Declare the password in your connection string(s).
    Try this link http://connectionstrings.com/?carrier=access2007
    George
    Home | Blog

  3. #3
    Join Date
    Dec 2004
    Location
    Madison, WI
    Posts
    3,926
    If you've set up security via MSAccess Security, there is an *.mdw file present. You'll need to create a shortcut to the database which uses the /wrkgrp option and points to the mdw file. So the properties for your shorcut might look like this:

    "C"\Program Files\Microsoft Office 2000\Office\MSAccess\MSAccess.EXE " /wrkgrp "C:\MySecurity.mdw " "c:\MyApplicationName.mdb"
    or something like that (it may not be correct on the syntax) but research this further on the web for MSAccess security files and MDW files. (If this is the way you set up security.)

    Otherwise, I take it holding down the shift key and opening the database doesn't work?
    Expert Database Programming
    MSAccess since 1.0, SQL Server since 6.5, Visual Basic (5.0, 6.0)

Posting Permissions

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