If you instantiate and open a recordset are there conditions where the pointer is not at the first record? I see a lot of code posted where people open a recordset, check to see if any records exist, move first, then loop through the records.
Set rs = CurrentDb.OpenRecordset(strSQL)
If Not rs.BOF And Not rs.EOF Then
rs.MoveFirst
Do While Not rs.EOF
loop
end if
I normally just write
Set rs = CurrentDb.OpenRecordset(strSQL)
Do While Not rs.eof
loop
Is the extra if check and movefirst redundant or can certain types of RS not open at the first record. Thanks.
Set rs = CurrentDb.OpenRecordset(strSQL)
If Not rs.BOF And Not rs.EOF Then
rs.MoveFirst
Do While Not rs.EOF
loop
end if
I normally just write
Set rs = CurrentDb.OpenRecordset(strSQL)
Do While Not rs.eof
loop
Is the extra if check and movefirst redundant or can certain types of RS not open at the first record. Thanks.