ACC2002: Help Is Not Called When You Press F1 for the OnUndo Property (295197)



The information in this article applies to:

  • Microsoft Access 2002

This article was previously published under Q295197
Moderate: Requires basic macro, coding, and interoperability skills.

This article applies to a Microsoft Access database (.mdb) and to a Microsoft Access project (.adp).

SYMPTOMS

When you press F1 to open the Help topic for the OnUndo property of a form, a text box, or a combo box, the "OnUndo Property" Help topic does not appear.

CAUSE

The Help topic for the OnUndo property is not set up properly to work with F1.

RESOLUTION

For information about the OnUndo property, click Microsoft Access Help on the Help menu in Access, type onundo in the Answer Wizard, and then click Search to view the topic.

The related "Undo Event" Help topic is located in the Visual Basic Help file. To view the "Undo Event" Help topic, press ALT+F11 while Access is open. Then, in the Visual Basic Editor, click Microsoft Visual Basic Help on the Help menu, type undo event in the Answer Wizard, and then click Search to view the topic.

STATUS

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

MORE INFORMATION

The Undo event is fired when a user returns a control or a form to a non-dirtied state by pressing ESC or by clicking the Undo command. The event can be cancelled programmatically by setting the Cancel argument of the event to True.

The following code is an example of a form Undo event procedure that uses a message box to ask the user to confirm the intent to cancel any pending changes:
Private Sub Form_Undo(Cancel As Integer)

Dim vResponse As Integer

vResponse = MsgBox("Are you sure you want to cancel " & _
   "any pending changes and revert back to the original values?", vbYesNo)

If vResponse = vbNo Then
   Cancel = True
End If

End Sub
				

Steps to Reproduce the Behavior

  1. Open the sample database Northwind.mdb.
  2. Open the Customers form in Design view.
  3. Right-click the form, and then click Properties.
  4. Click the arrow in the box below the title bar of the property sheet, and then click Form.
  5. Click the Event tab, and then locate the OnUndo property.
  6. Click in the OnUndo property box, and then press F1.
Note that Help does not appear for the Undo event.

Modification Type:MajorLast Reviewed:9/27/2003
Keywords:kbprb KB295197