To resolve this problem, obtain Microsoft Office 2000 Service Release 1/1a (SR-1/SR-1a).
To obtain SR-1/SR-1a, click the article number below to view the article in the Microsoft Knowledge Base:
245025�
OFF2000: How to Obtain and Install Microsoft Office 2000 Service Release 1/1a (SR-1/SR-1a)
To temporarily work around this problem do the following.
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.
Instead of invoking the
Undo method from a public module, call Form.Undo from the code module of the form, as in the following example:
-
Open the sample database Northwind.mdb.
-
Create a new form with the following characteristics:
Form: Test1
-------------------------
Caption: TestForm
RecordSource: Categories
Command button
------------------------
Name: Button0
Caption: My Button
OnClick: Event Procedure
Text box
---------------------------
Name: CategoryName
ControlSource: CategoryName
Text box
--------------------------
Name: Description
ControlSource: Description
-
In Design view, right-click the command button, and click Build Event on the menu that appears.
-
Click Code Builder, click OK, and type the following code in the resulting module:
Private Sub Command0_Click()
Form.Undo
End Sub
-
View the form in Form view and make a change to the description of any record.
-
Click the command button.
Note that your change was undone and that no error occurs.