I have a macro set up to display a msg box when there is no data on a report accessed from a command button on a form. The macro is msg box, then CancelEvent. However, after the message box displays, a box pops up that says "The OpenReport action was cancelled. You used a method of the DoCmd object to carry out an action in Visual Basic, but then clicked Cancel in a dialog box......etc." I have searched Help for a way to stop that box from popping up, but I cannot find anything. What am I doing wrong?
Thanks
Stacey
Thanks
Stacey