Any way to stop a process by using a button? (1 Viewer)

jtinker

New member
Local time
Today, 18:54
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?
 

KMAN

New member
Local time
Today, 18:54
Joined
May 2, 2000
Messages
8
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

Top Bottom