Answer by
mgroves (9)
This really depends on what context you are using VBA (Visual Basic for Applications). It sounds like you are probably using Access. With Access VBA, there are a number of ways to access query results, but one common way is with DAO recordsets. To loop through, simply write a 'while not yourRecordset.Eof'.