R
Rick
In the Northwind database the Employees form contains code for the
RecordExit event. However this event is not listed in the form properties
and the event is never triggered when moving from one record to another.
I tried setting the event property a number of ways being:
Forms("Employees").OnRecordExit = "[Event Procedure]"
Forms("Employees").OnRecordExit = "mymacro"
Forms("Employees").OnRecordExit = "=myproc"
This syntax works fine to set event properties that ARE included in the form
properties list, however, with the OnRecordExit property I consistently
receive the following error:
Run-time error '2455:' You entered an expression that has an invalid
reference to the property OnRecordExit.
Both the RecordExit event and the OnRecordExit property are described in
Visual Basic Help but they just don't seem to work. Could I be missing a
reference to a needed library?
Any suggestions would be appreciated very much.
(My need for this event is, of course, in another database but I discovered
it in Northwind. If I can get it working here I can apply the syntax to my
own database.)
Rick C
RecordExit event. However this event is not listed in the form properties
and the event is never triggered when moving from one record to another.
I tried setting the event property a number of ways being:
Forms("Employees").OnRecordExit = "[Event Procedure]"
Forms("Employees").OnRecordExit = "mymacro"
Forms("Employees").OnRecordExit = "=myproc"
This syntax works fine to set event properties that ARE included in the form
properties list, however, with the OnRecordExit property I consistently
receive the following error:
Run-time error '2455:' You entered an expression that has an invalid
reference to the property OnRecordExit.
Both the RecordExit event and the OnRecordExit property are described in
Visual Basic Help but they just don't seem to work. Could I be missing a
reference to a needed library?
Any suggestions would be appreciated very much.
(My need for this event is, of course, in another database but I discovered
it in Northwind. If I can get it working here I can apply the syntax to my
own database.)
Rick C