Hi guys
I have implemented this code into a button on my form to invoke the action of print preview of a report based on an ID query. It works fine when the user inputs an ID into the field. But when the user clicks on the cancel button or the X button, a runtime error happens.
The error is...