T
TC
Your instinct serves you well!
rs.findfirst ....
while not rs.nomatch
.....
rs.findnext ...
wend
HTH,
TC
rs.findfirst ....
while not rs.nomatch
.....
rs.findnext ...
wend
HTH,
TC
TC said:Your instinct serves you well!
rs.findfirst ....
while not rs.nomatch
.....
rs.findnext ...
wend
HTH,
TC
ITom said:Wta is the code structure to put Rst.FindNext in a loop? I'm using whatshow
below. It works fine but my instinct says it should be in some standard loop
rather than using the GoTo structure.
RstTicket.FindFirst "[TicketID] = " & Me!TicketID
If RstTicket.NoMatch = False Then
<<Some Code>>
CheckForAnotherTicket:
RstTicket.FindNext "[TicketID] = " & Me!TicketID
If RstTicket.NoMatch = False Then
<<Some Code>>
GoTo CheckForAnotherTicket
End If
End If
Thanks for all help!!
Tom
Van T. Dinh said:Not quite ... (Please see my reply)
--
HTH
Van T. Dinh
MVP (Access)
whatTC said:Your instinct serves you well!
rs.findfirst ....
while not rs.nomatch
.....
rs.findnext ...
wend
HTH,
TCIstandardshow
below. It works fine but my instinct says it should be in some
looprather than using the GoTo structure.
RstTicket.FindFirst "[TicketID] = " & Me!TicketID
If RstTicket.NoMatch = False Then
<<Some Code>>
CheckForAnotherTicket:
RstTicket.FindNext "[TicketID] = " & Me!TicketID
If RstTicket.NoMatch = False Then
<<Some Code>>
GoTo CheckForAnotherTicket
End If
End If
Thanks for all help!!
Tom