Any way to stop a process by using a button?

jtinker

New member
Local time
Today, 11:42
Joined
Apr 10, 2000
Messages
5
I have a processing loop set up that I would like to be able to stop by pressing a button on a form. Is there a way to do this?
 
Sure - Put a Toggle button on the Form. In the Loop, add an IF that checks the state of the toggle. Example:

Do ....
....
If Me!Canc_toggle = True, then Exit Do
....
Loop
 

Users who are viewing this thread

Back
Top Bottom