In the code you can catch the error like this
On Error GoTo Err_NotClicked
Then at the bottom of the code write
Err_NotClicked:
MsgBox "Enter your message here", vbCritical
Make sure you put an Exit Sub before the Err_NotClicked:
Otherwise the message will show up everytime the button is clicked regardless.
> I get the run-time error '2427' error with the message "You entered
> an
[quoted text clipped - 10 lines]
>
> Matt
doyle60@aol.com - 23 Apr 2008 21:33 GMT
Thanks. I followed your directions and the error message does not
come up. But the report still opens, showing blanks and "errors".
How do I get the report not to pop up at all?
The code is in the On Print of the detail section.
Thanks again,
Matt