G
Guest
I use an Access form that has a button that when you click runs a query. When
I click on the button and hit cancel. I get the a box with the following
message. Run time error '2001' you cancelled the previous operation. when you
hit debug it takes me to the following code.
Private Sub Command21_Enter()
DoCmd.OpenQuery "Daily scanned", vbNormal
End Sub
I want to be able to hit cancel and not be flagged by an error message.
I click on the button and hit cancel. I get the a box with the following
message. Run time error '2001' you cancelled the previous operation. when you
hit debug it takes me to the following code.
Private Sub Command21_Enter()
DoCmd.OpenQuery "Daily scanned", vbNormal
End Sub
I want to be able to hit cancel and not be flagged by an error message.