Registrations are now open. Join us today!
There is still a lot of work to do on the wiki yet! More information about editing can be found here.
Already have an account?

Microsoft KB Archive/170702

From BetaArchive Wiki

Article ID: 170702

Article Last Modified on 1/20/2007


  • Microsoft Access 97 Standard Edition

This article was previously published under Q170702

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


When you try to compact a database while in break mode of a module, you receive a message telling you that the database is in use by another person or program. If you try to repair the same database at this point, Microsoft Access returns an invalid page fault, and then Microsoft Access stops responding (hangs).


Make sure you close all objects before you try to compact a database. Then you will be able to compact and repair the database without any problems.


Microsoft has confirmed this to be a problem in Microsoft Access 97.


WARNING: Following these steps will cause a general protection fault on your computer. Make sure you save and close any open work on your computer before following these steps.

Steps to Reproduce Problem

  1. Open the sample database Northwind.mdb.
  2. Set a breakpoint for the IsLoaded() function in the Utility Functions module.
  3. Run the function from the Debug window. This will put the function in break mode.
  4. Minimize the module and select the Database window.
  5. On the Tools menu, click Database Utilities, and then click Compact.
  6. In the "Database to Compact From" dialog box, select the Northwind database you have open, and then click Compact. In the "Compact Database Into" box, accept the default database name, and then click Save.
  7. When the message is displayed that Northwind is being used by another user, click OK.
  8. On the Tools menu, click Database Utilities, and then click Repair. Note that you receive an invalid page fault.

Keywords: kbbug kbusage KB170702