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.

ACC2000: Name AutoCorrect Does Not Repair Report


View products that this article applies to.

Symptoms

Even though Name AutoCorrect is enabled to track and perform changes in your database, when you open a report after changing a field name, a query name, or a table name, you are prompted for the old field name, or you receive the following error message:
The Microsoft Jet database engine cannot find the input table or query 'Table or Query Name'. Make sure it exists and that its name is spelled correctly.

↑ Back to the top


Cause

If the record source for a report is a SQL SELECT statement, Name AutoCorrect repairs the SQL statement. However, Name AutoCorrect does not repair any controls on the report, the Filter or OrderBy properties, or values in the Field/Expression list of the Sorting and Grouping dialog box. Therefore, the report prompts you for the old field name's value when you open the report.

↑ Back to the top


Resolution

To correct this problem, open the report in Design view and manually change the control or property that Name AutoCorrect did not fix.

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

↑ Back to the top


More information

If the report was imported or converted from an earlier version of Microsoft Access, or if the Track name AutoCorrect info option was disabled when the report was created, the report doesn't have the name map information that Microsoft Access needs to repair name changes.

To have Access create the name map information for the report, be sure the Track name AutoCorrect info and Perform name AutoCorrect options are enabled. To do so, on the Tools menu, click Options, and then click the General tab. If there are no check marks in the Track name AutoCorrect info and Perform name AutoCorrect check boxes, click to select the check boxes. This enables Name AutoCorrect.

After enabling Name AutoCorrect, open the source of the report in Design view and save it, and then open the report in Design view and save it. Doing so causes Access to create the name map for the report and its source.

↑ Back to the top


References

For additional information about how Name AutoCorrect works and what it repairs and doesn't repair, please see the following article in the Microsoft Knowledge Base:
231745 ACC2000: How Name AutoCorrect Works and What It Repairs
For additional information about how Name AutoCorrect works for converted databases, please see the following article in the Microsoft Knowledge Base:
230616 ACC2000: Name AutoCorrect May Not Work in a Database Converted from an Earlier Version of Access
For additional information about how Name AutoCorrect works with imported objects, please see the following article in the Microsoft Knowledge Base:
231676 ACC2000: Name AutoCorrect Does Not Repair Imported Objects

↑ Back to the top


Keywords: KB231634, kbpending, kbbug

↑ Back to the top

Article Info
Article ID : 231634
Revision : 2
Created on : 6/29/2004
Published on : 6/29/2004
Exists online : False
Views : 424