Full Version: VBA Code: How do I break out of a loop?
UtterAccess Forums > Microsoft® Access > Access Forms
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?
Exit Do to get out of a Do Loop
xit For to get out of a For Next loop.
to just stop the code you can use Ctrl + Break...is that what you need?
Good luck
Excellent, thanks.
Actually to both, I was looking for an exit loop function as well (but for a different project).
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.