M
Mike
On an Access form, I have a textbox containing an AfterUpdate event which can
take up to 2 seconds to execute. (I won't get into why the event takes that
long). Also on the form is a close Button which, when clicked, closes the
current form. If the user has focus in the textbox and immediately click the
close Button, I get the following error:
"Error No: 2501, Error Description: The RunCommand action was cancelded."
This error happends because the close button can't run it's command because
the textbox AfterUpdate event is still running.
Is there a way to prevent this? How can I wait until the AfterUpdate event
is done before running the close button's event?
I hope that makes sense.
Thanks!
take up to 2 seconds to execute. (I won't get into why the event takes that
long). Also on the form is a close Button which, when clicked, closes the
current form. If the user has focus in the textbox and immediately click the
close Button, I get the following error:
"Error No: 2501, Error Description: The RunCommand action was cancelded."
This error happends because the close button can't run it's command because
the textbox AfterUpdate event is still running.
Is there a way to prevent this? How can I wait until the AfterUpdate event
is done before running the close button's event?
I hope that makes sense.
Thanks!