I have a command button which opens a report from a form. If a particular field on the form is not completed, I have a message box which pops up to tell the user that they can't open the report because they haven't filled in the particular field.
This all works OK but the report continues to open anyway, even after the OK button on the message box is clicked.
What code do I need to insert after the message box instruction and before the open report instruction to stop the report opening and return to the form.
Many thanks for any help.
This all works OK but the report continues to open anyway, even after the OK button on the message box is clicked.
What code do I need to insert after the message box instruction and before the open report instruction to stop the report opening and return to the form.
Many thanks for any help.