Chimp8471
Registered User.
- Local time
- Today, 21:59
- Joined
- Mar 18, 2003
- Messages
- 353
i have a form, that i have added a button, when i click the button i get the following message.
The expression on click you entered as the event property setting produced the following error: Ambiguous name detected: LME_Click.
*The expression may 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
can someone please explain this in very basic terms, and the best way around fixing it please.
the code behind the button is.....
Private Sub LME_Click()
On Error GoTo Err_LME_Click
'Calls the calender form and set calstartref
Dim stDocName As String
Dim stLinkCriteria As String
CalStartRef = "LME"
stDocName = "frmCalender"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_LME_Click:
Exit Sub
Err_LME_Click:
MsgBox Err.Description
Resume Exit_OpenCalOEE_Click
End Sub
my buttons name is : LME
My form name is: LME
please help
Andy
The expression on click you entered as the event property setting produced the following error: Ambiguous name detected: LME_Click.
*The expression may 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
can someone please explain this in very basic terms, and the best way around fixing it please.
the code behind the button is.....
Private Sub LME_Click()
On Error GoTo Err_LME_Click
'Calls the calender form and set calstartref
Dim stDocName As String
Dim stLinkCriteria As String
CalStartRef = "LME"
stDocName = "frmCalender"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_LME_Click:
Exit Sub
Err_LME_Click:
MsgBox Err.Description
Resume Exit_OpenCalOEE_Click
End Sub
my buttons name is : LME
My form name is: LME
please help
Andy