The expression On Click you entered as the event property setting produced the following error:
The expression you entered refers to an object that is closed or doesn't exist.
* The expression may not result in the name of a macro, the name of a user-defined function, or [Event Procedure].
* There may have been an error evaluation the function, event, or macro.
Caution Name AutoCorrect fixes most issues that occur when you rename any forms, reports, tables, or queries. However, Name AutoCorrect does not repair tables, queries, or field name changes in macros or in code. Also, Name AutoCorrect does not track changes to form, report, or control names. You may have to fix some references manually. Therefore, make sure that you make a backup copy of the database before you make any changes.
To rename the form or the report in the database, follow these steps:
- Click the Microsoft Office Button, and then click Open.
- In the Open dialog box, select the database that you want to open, and then click Open.
- If you receive the following message, click Options, click Enable this content, and then click OK.
- Click the Microsoft Office Button, and then click Access Options.
- In the Access Options dialog box, click Current Database.
- Under Name AutoCorrect Options, make sure that the Perform name Autocorrect check box is selected. If it is not selected, click to select the Perform name Autocorrect check box. Then, close and reopen the database for the change to take effect.
- In the Navigation Pane, right-click the form or the report, and then click Rename.
- Type a new name for the form or for the report, and then press ENTER.
- On the Quick Access toolbar, click Save.
- Click Microsoft Office Access Help, or press F1.
- Type rename or delete objects in the Search box.
- To view the topics, click Search.
Article ID: 926700 - Last Review: Oct 15, 2007 - Revision: 1