Рет қаралды 2,347
In this Microsoft Access tutorial, I'm going to teach you how to use a While Wend Loop in VBA. We'll discuss the pros and cons, and I'll show you how to simulate an Exit While even though this type of loop doesn't support that feature. Then I'll show you how to use a While loop to cycle through all of the records in the Customer table and display everyone's names using a recordset.
BECOME A MEMBER:
KZbin: / @599cd
or My Site: 599cd.com/THMe...
LEARN MORE:
While Wend Loop: 599cd.com/While
PREREQUISITES:
Intro to VBA: 599cd.com/Intr...
Variables: 599cd.com/Vari...
Status Box: 599cd.com/Status
LINKS:
Using Recordsets: 599cd.com/Reco...
VBA LOOPS SERIES:
For Next: 599cd.com/ForNext
While Wend: 599cd.com/While
Do While: 599cd.com/DoWhile
Do Until: 599cd.com/DoUntil
For Each: 599cd.com/ForEach
Nested Loops: 599cd.com/Nest...
Summary: 599cd.com/Loops
RECOMMENDED COURSES:
Developer Courses: 599cd.com/Deve...
While Wend Loops in Developer 12: 599cd.com/ACD12
Recordsets in Developer 16: 599cd.com/ACD16
SYNTAX:
While Condition
' Your Code Here
Wend
FREE TEMPLATE DOWNLOADS:
TechHelp Free Templates: 599cd.com/THFree
Blank Template: 599cd.com/Blank
Contact Management: 599cd.com/Cont...
Order Entry & Invoicing: 599cd.com/Invo...
More Access Templates: 599cd.com/Acce...
ADDITIONAL RESOURCES:
FREE Access Beginner Level 1: 599cd.com/Free1
How to Use Access in 30 Minutes: 599cd.com/30Mi...
$1 Access Level 2: 599cd.com/1Dollar
Donate to my Tip Jar: 599cd.com/TipJar
Get on my Mailing List: 599cd.com/YTML
Contact Me: 599cd.com/Contact
TechHelp: 599cd.com/Tech...
Consulting Help: 599cd.com/DevNet
Twitter: / learningaccess
en.wikipedia.o...
products.offic...
microsoft.com/...
KEYWORDS:
access 2016, access 2019, access 2021, access 365, microsoft access, ms access, ms access tutorial, #msaccess, #microsoftaccess, #help, #howto, #tutorial, #learn, #lesson, #training, #database, While-Wend Loop, while wend loop, while/wend loop, while loop, VBA, exit while, Loop Counter, Conditional Exit, Loop Termination, recordset, loop through customers, exit out of while loop
QUESTIONS:
Please feel free to post your questions or comments below. Thanks.