Full Version: VBA Code: How do I break out of a loop?
UtterAccess Forums > Microsoft® Access > Access Forms
Maxer
I have a loop that runs, and it works as it should, however, I would like to know how to break out of a loop.
Is there a keyboard command that you can use in Access to break a VBA loop?
fkegley
Exit Do to get out of a Do Loop
xit For to get out of a For Next loop.
freakazeud
Hi,
to just stop the code you can use Ctrl + Break...is that what you need?
HTH
Good luck
Maxer
Excellent, thanks.
Actually to both, I was looking for an exit loop function as well (but for a different project).
freakazeud
You're welcome.
Good luck on future projects!
This is a "lo-fi" version of UA. To view the full version with more information, formatting and images, please click here.