Microsoft Knowledge Base Article
This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved.
Terms
of Use |
Trademarks
Article ID: 198895 - Last Review: January 26, 2005 - Revision: 1.2
ACC2000: Logon Dialog Box Appears When Using Wizard or Add-in in ADP
This article was previously published under Q198895
Moderate: Requires basic macro, coding, and interoperability skills.
This article applies only to a Microsoft Access project (.adp).
If you have used Microsoft Jet database engine security to assign a password to the Admin account, and you then try using a wizard or an add-in in a Microsoft Access project (ADP) file, Microsoft Access may prompt you with a logon dialog box. After you enter the appropriate password, you are not prompted again during that session.
The wizards in Microsoft Access rely on the Microsoft Jet database engine, which is loaded on demand when you run a wizard or add-in. The Microsoft Jet database engine does not load by default when you open Microsoft Access 2000, unless you open a Microsoft Access database (MDB). This allows for
better performance and uses less memory when you are working only with Access project (ADP) files. Consequently, if Microsoft Jet has a
password assigned to the Admin user account, and you are working in an
Access project, you receive the logon prompt when the Microsoft Jet database engine is loaded.
WARNING: The following workaround creates a shortcut that bypasses built-in Microsoft Access security by automatically logging you in as Admin. Remember that anyone using this shortcut can open your Microsoft Access databases as Admin.
To work around this behavior, follow these steps:
- Right-click the Windows desktop, point to New on the menu that appears, and then click Shortcut.
- In the Create Shortcut wizard, type the path to MSAccess.exe. The
default location is the following:
c:\Program Files\Microsoft Office\Office\MSAccess.exe
- At the end of the path to MSAccess.exe, type the /User and /Pwd switches with Admin as the user and whatever password you use for the Admin.
For example, if Admin has the password "x" and Microsoft Access
is installed in its default location, you would type the following in
the Create Shortcut wizard:
'c:\Program Files\Microsoft Office\Office\MSAccess.exe /User Admin /Pwd
x'
- Click Next.
- On the Shortcut Name screen, type Access as Admin and click Finish.
You now have a shortcut that takes you to Microsoft Access and automatically logs you on as Admin. Now, if you run a wizard or add-in during that session, you are not prompted to log on.
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.
Steps to Reproduce Problem
- Start Microsoft Access.
- Close the Startup dialog box.
- On the Tools menu, click Security, and then click User and Group Accounts.
- Set the Admin password to x.
- Close Microsoft Access and then open it again.
- Create a new Access project (ADP) and log in as Admin with the password x.
- In the Database window, click Pages under Objects, and then double-click Create data access page by using wizard.
Note that you are prompted for a login ID and password. - Enter Admin in the ID field and x as the password.
- Click OK.
Note that the Create Datapage wizard proceeds normally.
APPLIES TO
- Microsoft Access 2000 Standard Edition
| kbbug kbclientserver kbpending KB198895 |
Community Feedback System
Very often, it takes hours to solve a problem. Very often, you've looked high
and low, and have tried a lot of solutions. When you finally found it, chances
are, it was because someone else helped you. Here's your chance to give back.
Use our community feedback tool to let others know what worked for you and what
didn't.
Please also understand that the community feedback system is not warranted to be
correct, it's simply a system that we've built to let people try and help each
other. If something in a feedback response doesn't make sense to you, or you're
not comfortable making changes that the feedback talks about (like registry
edits), please consult a professional.
Thank you for using kbAlertz.com Feedback System.
-- Scott Cate