T
TraciAnn via AccessMonster.com
After opening my database and then opening a form I get the following error:
The expression On Current you entered as the event property setting produced
the following error:.
*The expression may not result in the name of a macro, the name of a user-
defined function, or [Event Procedure].
*There may have been an error evaluating the function, event, or macro.
This error occurs when an event has failed to run because Microsoft Office
Access cannot evaluate the location of the logic for the event. For example,
if the OnOpen property of a form is set to =[Field], this error occurs
because Access expects a macro or event name to run when the event is fired.
The error will continue if I attempt to use the combo box to select a record.
If I view code then return to the form, it functions as expected and the
error ceases. To cause it to occur again, all I need to do is close the
database and reopen.
Here is the On Current Event Procedure:
=========
Private Sub Form_Current()
Me.cboFindContact.Value = Me.ContactID
If Me.FilterOn Then
Me.cboFindContact.Enabled = False
Else
Me.cboFindContact.Enabled = True
End If
End Sub
=========
Thanks!
The expression On Current you entered as the event property setting produced
the following error:.
*The expression may not result in the name of a macro, the name of a user-
defined function, or [Event Procedure].
*There may have been an error evaluating the function, event, or macro.
This error occurs when an event has failed to run because Microsoft Office
Access cannot evaluate the location of the logic for the event. For example,
if the OnOpen property of a form is set to =[Field], this error occurs
because Access expects a macro or event name to run when the event is fired.
The error will continue if I attempt to use the combo box to select a record.
If I view code then return to the form, it functions as expected and the
error ceases. To cause it to occur again, all I need to do is close the
database and reopen.
Here is the On Current Event Procedure:
=========
Private Sub Form_Current()
Me.cboFindContact.Value = Me.ContactID
If Me.FilterOn Then
Me.cboFindContact.Enabled = False
Else
Me.cboFindContact.Enabled = True
End If
End Sub
=========
Thanks!