I have a button (wow I hear you say). behind this button I call a procedure in a module.
It can run for many minutes during which time Access cannot receive any user input.
I want to be able to cancel the process by allowing the user to click on the button whose caption I changed from ‘Process’ to ‘Cancel’ before I called the procedure
so clicking on the button changes the caption to “Cancelling” and i have some code in the process like
DoEvents If ctlCancel.Caption = "Cancelling" Then MsgBox "User Cancelled", vbOKOnly, "Seesion Output" ctlCancel.Caption = "Session Output" GoTo Exit_Procedure End If
So how do I allow the button to be clicked while the process is running?