K
KumbiaKid
I'm trying to set up a very simple form to collect a prompt for a query and
am using the excellent guidance in
http://www.fontstuff.com/access/acctut08.htm. I have tried to follow the
advice in this guide carefully, but when I click on the Cancel button (as
suggested in the reference web page) I get the following error:
The expressiion On Click you entered as the event property setting
produced the following error: A problem occurred while Microsoft Access
was communicating with the OLE server or ActiveX Control.
*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.
It doesn't seem to matter what code I have in the OnClick Event Procedure.
I've simplified it to:
Private Sub CancelQueryCmdButton_Click()
MsgBox "TEST", vbOKOnly
Rem DoCmd.Close acForm, "SelectOneListNameForm"
End Sub
The code I'd like to run is, in the example above, REMed out. I tried the
MsgBox because it's so simple and I thought I couldn't get that wrong, but I
still get the error. I get the error even if I leave the Event Procedure
empty:
Private Sub CancelQueryCmdButton_Click()
End Sub
Can anyone help?
am using the excellent guidance in
http://www.fontstuff.com/access/acctut08.htm. I have tried to follow the
advice in this guide carefully, but when I click on the Cancel button (as
suggested in the reference web page) I get the following error:
The expressiion On Click you entered as the event property setting
produced the following error: A problem occurred while Microsoft Access
was communicating with the OLE server or ActiveX Control.
*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.
It doesn't seem to matter what code I have in the OnClick Event Procedure.
I've simplified it to:
Private Sub CancelQueryCmdButton_Click()
MsgBox "TEST", vbOKOnly
Rem DoCmd.Close acForm, "SelectOneListNameForm"
End Sub
The code I'd like to run is, in the example above, REMed out. I tried the
MsgBox because it's so simple and I thought I couldn't get that wrong, but I
still get the error. I get the error even if I leave the Event Procedure
empty:
Private Sub CancelQueryCmdButton_Click()
End Sub
Can anyone help?