Jan 9, 2003 #1 medium MIS Aug 28, 2002 30 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 Aug 6, 2001 3,006 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