ACC: "Not a valid password" Err When DB Password Contains "\"

Last reviewed: May 23, 1997
Article ID: Q162979
The information in this article applies to:
  • Microsoft Access versions 7.0, 97

SYMPTOMS

Novice: Requires knowledge of the user interface on single-user computers.

When you try to open a database for which you have set a database password, and you are sure that you have typed the correct password in the Password Required dialog box, you may still receive the following error message

   Not a valid password

and you cannot open the database.

CAUSE

Your database password contains a backslash character (\).

RESOLUTION

To open your database, type two backslash characters (\\) instead of one in the Password Required dialog box. For example, if your database password is "pass\word" (without the quotation marks), type "pass\\word" (without the quotation marks).

STATUS

Microsoft has confirmed this to be a problem in Microsoft Access 7.0 and 97. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

If you want to remove the database password that contains a backslash and add a new database password, follow these steps:

  1. Start Microsoft Access and double-click More Files in the starting dialog box.

  2. In the Open dialog box, select your database, click the Exclusive check box, and then click Open.

  3. On the Tools menu, point to Security, and then click Unset Database Password.

  4. In the Unset Database Password dialog box, type the password that you want to unset, and then click OK. Your old password is removed.

  5. On the Tools menu, point to Security, and then click Set Database Password.

  6. In the Set Database Password dialog box, type your new password in the Password and Verify boxes, and then click OK.

Steps to Reproduce Problem

  1. Create a new database.

  2. On the Tools menu, point to Security, and then click Set Database Password.

  3. In the Set Database Password dialog box, type "pass\word" (without the quotation marks) in the Password and Verify boxes, and then click OK.

  4. Close the database and try to reopen it.

  5. Type "pass\word" (without the quotation marks) in the Password Required dialog box. Note that you receive the "Not a valid password" error message.

  6. Type "pass\\word" (without the quotation marks) in the Password Required dialog box. Note that your database opens.

REFERENCES

For more information about database passwords, search on "passwords," and then "Create or change passwords," using the Microsoft Access Help Index, or ask the Microsoft Access Office Assistant.

For information about using a database password containing a space, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q152760
   TITLE     : ACC95: DB Password with Space Becomes Invalid After Compact


Additional query words: pass word security pwd
Keywords : kberrmsg kbusage ScrtOthr
Version : 7.0 97
Platform : WINDOWS
Hardware : X86
Issue type : kbbug
Resolution Type : kbworkaround


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: May 23, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.