Microsoft KB Archive/114682

= ACC: How to Edit Library Databases (1.x/2.0) =

Article ID: 114682

Article Last Modified on 5/6/2003

-

APPLIES TO


 * Microsoft Access 1.0 Standard Edition
 * Microsoft Access 1.1 Standard Edition
 * Microsoft Access 2.0 Standard Edition

-



This article was previously published under Q114682



SUMMARY
Advanced: Requires expert coding, interoperability, and multiuser skills.

This article describes two methods for editing Microsoft Access library databases using Microsoft Access versions 1.x and 2.0.

A library database is a database that contains a collection of database objects that can be loaded automatically when you start Microsoft Access. You specify that a database is to be loaded by adding its name to the [Libraries] section of the MSACCESS.INI (version 1.x) or MSACC20.INI (version 2.0) file, or by installing it using the Add-in Manager (version 2.0). Library database files usually have .MDA extensions.

Because library databases are loaded when Microsoft Access starts, you cannot open them directly for editing. If you try to do so, you will receive an error message similar to:

The database 'c:\access\filename.mda' is already open as a library database



MORE INFORMATION
NOTE: You should back up library database files before you modify them.

Method 1
NOTE: This method applies only to Microsoft Access version 2.0.

 While Microsoft Access is not running, open the MSACC20.INI file located in your Windows directory with any text editor (such as Windows Notepad).  Add the line "DebugLibraries=True" (without quotation marks) to the [Options] section of the file. The section will look like:

      [Options] Systemdb=c:\Access\SYSTEM.MDA UtilityDB= c:\Access\Utility.MDA DebugLibraries=True  Save and then close the file. Start Microsoft Access. Open any database. Open any module.</li> From the View menu, choose Procedures.</li> In the Databases box, select the library that you want to edit.</li></ol>

Method 2
<ol> While Microsoft Access is not running, open the MSACCESS.INI (version 1.x) or MSACC20.INI (version 2.0) file in your Windows directory in any text editor (such as Windows Notepad).</li>  Locate the entry for the library file that you want to edit. The entry will be similar to:

<pre class="fixed_text">     Wzlib.mda=rw </li>  Comment the line out by adding a semicolon at the beginning of the line. The entry should be similar to:

<pre class="fixed_text">     ;Wzlib.mda=rw </li> Save and then close the .INI file.</li> Start Microsoft Access.</li> From the File menu, choose Open Database.</li> Select the library you want to open. Note that by default, the Open Database dialog box only displays files with .MDB extensions. Either type the name of the library you want to open, or type "*.MDA" (without quotation marks) in the File Name box to display files with .MDA extensions.</li></ol>

<div class="references_section">