philljp390
Registered User.
- Local time
- Today, 16:16
- Joined
- Sep 7, 2003
- Messages
- 64
I have a button on a form, when clicked opens another form based on a query.
If you press the Escape Key while this query is running it comes up with:
"Run-Time error '2501'"
The OpenForm action was canceled.
Debug takes me to:
DoCmd.OpenForm "frmInfoPull", acNormal
So I need something that if someone presses the Escape Key, while this query is running, it simply stops the query.

If you press the Escape Key while this query is running it comes up with:
"Run-Time error '2501'"
The OpenForm action was canceled.
Debug takes me to:
DoCmd.OpenForm "frmInfoPull", acNormal
So I need something that if someone presses the Escape Key, while this query is running, it simply stops the query.