Article ID: 826760
Article Last Modified on 3/29/2007
APPLIES TO
- Microsoft Office Access 2003
This article applies only to a Microsoft Access database (.mdb).
Novice: Requires knowledge of the user interface on single-user computers.
SYMPTOMS
When you open an Access database as read-only, and then you try to view the object dependencies for database objects (such as a table), the incorrect object dependencies may be listed.
CAUSE
Access builds the dependency list based on name maps. This problem occurs when the database object has been recently renamed, and the name change has not been updated. By default, if the database is opened as read-only, the Track name AutoCorrect info feature and the Perform name AutoCorrect feature are not available. You cannot make these features available.
WORKAROUND
To work around the problem, open the database in read mode or in write mode. If the Perform name AutoCorrect feature is not enabled, follow these steps to enable this feature:
- On the Tools menu in the Database window, click Options.
- In the Options dialog box, click the General tab, and then click to select the Track name AutoCorrect info check box.
- Click to select the Perform name AutoCorrect check box.
- Click Apply, and then click OK.
- On the File menu, click Close.
- Open the database again in read mode or in write mode.
STATUS
This behavior is by design.
MORE INFORMATION
Track name AutoCorrect info is a feature that was introduced in Microsoft Access 2000. When the Track name AutoCorrect info feature is made available for the database, Access creates the name map for each database object, and then keeps track of name changes. However, this feature does not perform any corrections.
To make name changes throughout the database, the Perform name AutoCorrect feature must be made available. When you open an object, Access checks to see if a name change must be applied to that object or to its contents. If a change has occurred, Access makes the required name change automatically.
For the Perform name AutoCorrect feature to work correctly, the object that has the name change made to it must have a name map that is associated with it. If the object does not have a name map, the Perform name AutoCorrect feature cannot repair the name change for the object even though the Perform name AutoCorrect feature is enabled to track and to perform the name change.
Steps to Reproduce the Problem
Caution If you follow the steps in this example, you modify the sample database Northwind.mdb. You may want to back up the Northwind.mdb file and follow these steps on a copy of the database.
- Start Access.
- Open the Northwind.mdb database in read mode or in write mode.
- In the Database window in the Objects section, click Tables.
- View the Object Dependencies of the Suppliers table. To do this, follow these steps:
- Right-click the Suppliers table, and then click Object Dependencies.
- In the Object Dependencies pane for the table, view the list of database objects with the following criteria:
- Objects that depend on me
- Objects that I depend on
- Rename the Suppliers table to Suppliers1.
- Close the Northwind.mdb database.
- Open the Northwind.mdb database as read-only. To do this, follow these steps:
- Start Access.
- On the File menu, click Open.
- In the Open dialog box, select the database that you want.
- On the Open button, click the down arrow, and then select Open Read-Only.
- In the Database window under Objects, click Tables.
- View the Object Dependencies of the Suppliers1 table. To do this, follow these steps:
- Right-click the Suppliers1 table, and then click Object Dependencies.
- In the Object Dependencies pane for the table, view the list of database objects with the following criteria:
- Objects that depend on me
- Objects that I depend on
Notice that the database objects that are listed in the Object Dependencies pane are incorrect.
- In the Database window under the Objects section, click Forms.
- In the right pane, double-click Suppliers.
Notice that when you try to open the Suppliers form, the form does not open, and you receive the following error message: Note You receive this error message when the name changes are not made. The database object is still dependent on the previous object dependencies.
REFERENCES
For more information about renaming errors and object dependencies, click Microsoft Office Access Help on the Help menu, type Name AutoCorrect in the Search for box in the Assistance pane, and then click Start searching to view the topic.
Additional query words: Access2003
Keywords: kberrmsg kbdatabase kbprb KB826760