Microsoft KB Archive/295197

= ACC2002: Help Is Not Called When You Press F1 for the OnUndo Property =

Article ID: 295197

Article Last Modified on 9/27/2003

-

APPLIES TO


 * Microsoft Access 2002 Standard Edition

-



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 &quot;OnUndo Property&quot; 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 &quot;Undo Event&quot; Help topic is located in the Visual Basic Help file. To view the &quot;Undo Event&quot; 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(&quot;Are you sure you want to cancel &quot; & _  &quot;any pending changes and revert back to the original values?&quot;, 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.

Additional query words: pra doesn't isn't

Keywords: kbprb KB295197

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.