Jan 9, 2003 #1 medium MIS Joined Aug 28, 2002 Messages 30 Location US Does anyone know if the For Each...Next statement can be used on the records that are in a query? If so, how would one facillitate this with code? Thanks in advance.
Does anyone know if the For Each...Next statement can be used on the records that are in a query? If so, how would one facillitate this with code? Thanks in advance.
Jan 9, 2003 1 #2 jebry Programmer Joined Aug 6, 2001 Messages 3,006 Location US Hi! If you open a query in code (I assume using a recordset) then it is most common to use a Do loop. rst.MoveFirst Do Until rst.EOF = True Do your stuff rst.MoveNext Loop hth Jeff Bridgham bridgham@purdue.edu Upvote 0 Downvote
Hi! If you open a query in code (I assume using a recordset) then it is most common to use a Do loop. rst.MoveFirst Do Until rst.EOF = True Do your stuff rst.MoveNext Loop hth Jeff Bridgham bridgham@purdue.edu
Jan 11, 2003 Thread starter #3 medium MIS Joined Aug 28, 2002 Messages 30 Location US Thank you very much. Upvote 0 Downvote