Answers for "access vba loop recordset"

VBA
1

VBA Loop through recordset

'The short version
Dim rs As DAO.Recordset
Set rs = CurrentDb.OpenRecordset("SELECT * FROM Contacts")
If Not (rs.EOF And rs.BOF) Then
	Do Until rs.EOF = True
		rs.MoveNext
	Loop
End If
rs.Close
Set rs = Nothing
Posted by: Guest on March-02-2021

Code answers related to "VBA"

Browse Popular Code Answers by Language