ACC2002: RecordExit Event in Employees Form Does Not Work (286591)



The information in this article applies to:

  • Microsoft Access 2002

This article was previously published under Q286591
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

The Employees form module in the Northwind sample database and NorthwindCS sample project contains an event procedure for the RecordExit event that does not work.

RESOLUTION

You can safely remove the procedure from the form module, or you can leave the procedure as is.

STATUS

Microsoft has confirmed that this is a problem in Microsoft Access.

MORE INFORMATION

The RecordExit event was an event that existed during the Microsoft Access 2002 beta cycle, but it was removed in the final release version of Microsoft Access 2002. The sample applications used this event in the Employees form; however, the procedure was not removed from the sample applications after the event was removed from Microsoft Access. Note that the event procedure will not fire because the RecordExit event no longer exists in Microsoft Access.

Steps to Reproduce the Behavior

  1. Open the sample database Northwind.mdb or the sample project NorthwindCS.adp.
  2. Open the Employees form in Design view.
  3. On the View menu, click Code to view the module of the form.
  4. Note that the module contains the following event procedure:
    Private Sub Form_RecordExit(Cancel As Integer)
        ' Hide the errormsg label to reduce flashing when navigating
        ' between records.
        errormsg.Visible = False
    End Sub
    					

Modification Type:MajorLast Reviewed:11/6/2003
Keywords:kbbug kbnofix KB286591