The following code executes a parameter query.
Sub Command_Click()
executeQuery "LookUp Query", acEdit
End Sub
After clicking the command button, a user can enter data in the parameter textbox or click cancel. If the user hits cancel without entering data, you get the error #2001, you have canceled a previous operation.
How can I prevent error?
Sub Command_Click()
executeQuery "LookUp Query", acEdit
End Sub
After clicking the command button, a user can enter data in the parameter textbox or click cancel. If the user hits cancel without entering data, you get the error #2001, you have canceled a previous operation.
How can I prevent error?