Randomblink
The Irreverent Reverend
- Local time
- Today, 14:53
- Joined
- Jul 23, 2001
- Messages
- 279
Ok...
I am getting this error message:
The expression On Click you entered as the event property setting produced the following error: Member already exists in an object module from which this object module derives.
* 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.
Here is what I am doing.
I am in a Form.
frm_SponsorData
I am clicking on a label.
btn_Close
The code behind the label is:
Private Sub btn_Close_Click()
cde_CloseForm
End Sub
The Function it is calling is in another module and is used by MANY forms. The Function is this:
Public Function cde_CloseForm()
On Error GoTo Err_cde_CloseForm
DoCmd.Close
Exit_cde_CloseForm:
Exit Function
Err_cde_CloseForm:
MsgBox Err.Description
Resume Exit_cde_CloseForm
End Function
Why is this not working?
I use this same Function from another form and it works just fine.
I am getting this error message:
The expression On Click you entered as the event property setting produced the following error: Member already exists in an object module from which this object module derives.
* 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.
Here is what I am doing.
I am in a Form.
frm_SponsorData
I am clicking on a label.
btn_Close
The code behind the label is:
Private Sub btn_Close_Click()
cde_CloseForm
End Sub
The Function it is calling is in another module and is used by MANY forms. The Function is this:
Public Function cde_CloseForm()
On Error GoTo Err_cde_CloseForm
DoCmd.Close
Exit_cde_CloseForm:
Exit Function
Err_cde_CloseForm:
MsgBox Err.Description
Resume Exit_cde_CloseForm
End Function
Why is this not working?
I use this same Function from another form and it works just fine.