Looping through records

T

TLuebke

I'm building an XML file by looping through records in a table. Some records
may have a bad CustomerID that I've flagged earlier by appending a 1 to the
record.

I'd like the Loop to skip to the next record if it sees a bad ID flag. How
do I skip the current record and move to the next without completely exiting
the loop?

Thanks,

Todd
 
S

SteveS

Todd,

Look at these two examples. Maybe they will help you. BTW, these are air
code....

'------------------------------------------------------
Sub WriteXML_1()

open recordset (rst)

DO

IF NOT (Bad_ID_Flag=1) Then
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top