Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

MOD2000: How to Distribute a Secured Database


View products that this article applies to.

This article was previously published under Q205151
This article applies only to a Microsoft Access database (.mdb).

Moderate: Requires basic macro, coding, and interoperability skills.

↑ Back to the top


Summary

When you distribute a secured database as a run-time application, you must take certain precautions to ensure that you can install the application on another computer. This article lists the steps that you should follow to distribute a secured database.

↑ Back to the top


More information

When you distribute a run-time application to users who have Microsoft Access 2000 on their computers, you should take several precautions to protect the database. To prevent users from making modifications to the objects and code or from inadvertently causing problems with the application, consider these recommendations:
  • Specify the /runtime switch on all command lines that you use to start the application.
  • Use the User Level Security Wizard that is provided with Access 2000 to secure all the objects in the database.
  • Use customized menus and toolbars within the application.
  • Set the AllowBypassKey property to False to disable the SHIFT key.
  • Set database Startup properties to prevent users from accessing the Database window and the design of objects.
  • If the database contains Visual Basic for Applications (VBA) code, compile and save all code, compact the database, and from the results, make an MDE file.
After considering these recommendations, follow these steps to distribute your run-time application:
  1. Open your MDB or MDE file in Access 2000, and enter a user name and a password when you are prompted.
  2. On the Tools menu, point to Macro, and then click Visual Basic Editor.
  3. In the Visual Basic Editor, click Package and Deployment Wizard on the Add-ins menu.

    NOTE: If the Package and Deployment Wizard does not appear on the Add-ins menu, click Add-in Manager instead, and in the Add-in Manager dialog box, click the VBA Package and Deployment Wizard, click to select the Loaded/Unloaded and the Load on Startup check boxes, and then click OK.
  4. On the first page of the Package and Deployment Wizard, click Package.
  5. Click Standard Setup Package, and then click Next.
  6. Choose a path to the Package folder, and then click Next.
  7. If you are presented with a Missing Dependency Information dialog box, handle appropriately, and then click OK.
  8. Click to select the Include Access Runtime check box, and then provide access to the ODETools\V9\Runtime folder.
  9. Click Add, and in the Add File dialog box, click All Files (*.*) in the Files of type list. Browse to the folder that contains the secured .mdw file, select the file, click Open, and then click Next.
  10. Enter an Installation title, a command to run (if you want), and then click Next.
  11. Determine your startup menu group and item. Click to highlight the item, and then click Properties. Note the Target property similar to the following, where <dbname> is the actual name of your database:
    "$(AppPath)\<dbname>.mdb"
  12. Change this property as follows, replacing <securedfile> with the actual name of your secured workgroup file and replacing <dbname> with the actual name of your database. Then, click OK and Next.
    /wrkgrp "$(AppPath)\<securedfile>.mdw" "$(AppPath)\<dbname>.mdb"
  13. Modify any Install Locations if you want, and then click Next.

    NOTE: If you change the Install Location for your secured workgroup file, make sure you go back and change the Target property as described in the preceding step.
  14. Click to select the files that you want to install as shared files, and then click Next.
  15. Enter a script name, and then click Finish.
  16. After the package is created, save the packaging report if you want, and then click Close.
  17. Click Close again, close the Visual Basic Editor, and then quit Microsoft Access.
  18. Share your Package folder or copy the folder to a compact disc (CD).
  19. On a clean Microsoft Windows-based computer (a computer that does not have Microsoft Access installed), install the run-time application from the shared Package folder or CD.
  20. After it is installed, start the application. If the application is installed correctly, the user should be prompted to first enter a name and a password before the application opens. If this does not occur, make sure that the run-time application is pointing to the secured MDW file. To do this, follow these steps:
    1. Start the Workgroup Administrator (Wrkgadm.exe) utility.
    2. Click Join, and then join to the secured MDW file.
    3. Quit the Workgroup Administrator, and then restart the run-time application.

↑ Back to the top


References

For additional information about distributing the Workgroup Administrator with your Access run-time, click the article number below to view the article in the Microsoft Knowledge Base:
241479� MOD2000: Package and Deployment Wizard Does Not Have Option to Include the Workgroup Information File

For additional information about distributing an Access project, click the article number below to view the article in the Microsoft Knowledge Base:
240293� MOD2000: How to Deploy an Access Data Project That Includes the Microsoft Data Engine

For additional information about securing an Access database, click the article numbers below to view the articles in the Microsoft Knowledge Base:
254372� ACC2000: Overview of How to Secure a Microsoft Access Database
148555� ACC95: Microsoft Access 95 Security White Paper Available in Download Center

↑ Back to the top


Keywords: KB205151, kbusage, kbhowto

↑ Back to the top

Article Info
Article ID : 205151
Revision : 2
Created on : 6/24/2004
Published on : 6/24/2004
Exists online : False
Views : 305