I have a query which prompts the user to enter a date.
Using the following VBA code, which is assigned to a button:
When the prompt appears and I click cancel rather then enter a date I get an error message:
Runtime Error '2001'
You cancelled the previous operation
Is there anyway I can press cancel and not receive this message?
Using the following VBA code, which is assigned to a button:
Code:
Sub GetMErateData()
'Displays all ME rate data
DoCmd.OpenQuery "qry Divisional Analysis Month End Rate"
End Sub
When the prompt appears and I click cancel rather then enter a date I get an error message:
Runtime Error '2001'
You cancelled the previous operation
Is there anyway I can press cancel and not receive this message?