Dim rst As DAO.Recordset
Dim IsLast as Boolean
Set rst = CurrentDb.OpenRecordset( _ ...
With rst
...
[COLOR=Green] 'if the recordset has been populated, then
'IsLast = true when you are on the last record[/COLOR]
IsLast = (.RecordCount = .AbsolutePosition + 1)
End with