B
Bruce
I have tried various ways of getting a message box to pop
up when a user clicks a check box. The idea is to provide
some information associated with the choice. However,
when I attempt something in the On Click event such as:
MsgBox "Message", vbOKCancel, "Title"
I receive the following error message:
The expression 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.
I have tried various suggestions from a Google groups
search, including checking the references at the tools
menu in the code window, and decompiling the database.
Nothing works. I also tried the same code at other
events, but all that changed was the error message.
Then I got the idea from a Google search to try opening a
form instead, using DoCmd. It seemed to me a good choice,
as I could use DoCmd to close the form on exit from the
control, eliminating the need to click OK or whatever:
DoCmd.OpenForm "frmInfo". Alas, same error message.
Anybody know what I'm doing wrong? Access Help, by the
way, offers nothing.
up when a user clicks a check box. The idea is to provide
some information associated with the choice. However,
when I attempt something in the On Click event such as:
MsgBox "Message", vbOKCancel, "Title"
I receive the following error message:
The expression 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.
I have tried various suggestions from a Google groups
search, including checking the references at the tools
menu in the code window, and decompiling the database.
Nothing works. I also tried the same code at other
events, but all that changed was the error message.
Then I got the idea from a Google search to try opening a
form instead, using DoCmd. It seemed to me a good choice,
as I could use DoCmd to close the form on exit from the
control, eliminating the need to click OK or whatever:
DoCmd.OpenForm "frmInfo". Alas, same error message.
Anybody know what I'm doing wrong? Access Help, by the
way, offers nothing.