ACC2000: Access Prompts You to Save Form After You Use the Code Builder
ID: Q241811
|
The information in this article applies to:
Novice: Requires knowledge of the user interface on single-user computers.
This article applies to a Microsoft Access database (.mdb) and a Microsoft Access project (.adp).
SYMPTOMS
Access prompts you to save changes when you close a form or a report even though you did not make any design changes.
CAUSE
You used the Code builder to view the module of the form or the report. When you use the Code builder to view a form or a report module, the builder always marks the form as dirty even if you did not make any design changes. When you close the form or the report, Microsoft Access prompts you to save it.
RESOLUTION
To avoid the save prompt when you want to view a form or report module, do not use the Code builder. Instead, use one of the following methods to view the form or report module.
Method 1: Use the Code command on the View Menu
- Start Microsoft Access 2000.
- Open the sample database Northwind.mdb.
- Open the Employees form in Design view.
- On the View menu, click Code to view the module of the form.
- Browse to the procedure that you want to view.
- Close the Visual Basic Editor without making any changes, and then return to Microsoft Access.
- Close the Employees form without making any changes.
Note that Microsoft Access does not prompt you to save the form.
Method 2: View the Module from the Project Explorer in the Visual Basic Editor
- Start Microsoft Access 2000.
- Open the sample database Northwind.mdb.
- Open the Employees form in Design view.
- On the Tools menu, point to Macro, and then click Visual Basic Editor.
- On the View menu, click Project Explorer.
- In the Project Explorer, expand the Microsoft Access Class Objects folder under your database.
- Locate the form or report module that you want to view, and then double-click to open it.
- Browse to the procedure that you want to view.
- Close the Visual Basic Editor without making any changes, and then return to Microsoft Access.
- Close the Employees form without making any changes.
Note that Microsoft Access does not prompt you to save the form.
STATUS
Microsoft has confirmed this to be a problem in the Microsoft products listed
at the beginning of this article.
MORE INFORMATION
Steps to Reproduce Behavior
- Repeat steps 1 through 3 of either method in the "Resolution" section earlier in this article.
- On the View menu, click Properties to display the property sheet.
- On the Edit menu, click Select Form.
- In the property sheet, click the Event tab.
- Click in the AfterUpdate property box. Note that it is set to [Event Procedure].
- Click the Build (...) button to the right of the property box. Note that this invokes the Visual Basic Editor and displays the code for the AfterUpdate event of the form.
- Close the Visual Basic Editor without making any changes, and then return to Microsoft Access.
- Close the Employees form without making any changes.
Note that Microsoft Access prompts you to save changes to the form even though you did not modify the design of the form.
Additional query words:
pra
Keywords : kbdta
Version : WINDOWS:2000
Platform : WINDOWS
Issue type : kbbug