DoCmd.openReport "ThisWeekPayReport", acViewReport, , , acDialog
The above command is fired by a button on a form. The data source of the report has a criteria of employee number. Once the button is clicked Access opens a dialog box titled "Enter Parameter Value". If an incorrect number is entered how can I catch it?
Is there some kind of an OnError condition that I could place the DoCmd inside of that would catch it if an incorrect number was entered?