Code:
Dim varLastRecordBM as variant ' BookMark
Dim lngIDToFind as variant
TryAgain:
lngIDToFind = Inputbox("RecordID to find?")
if Len(lngIDToFind) = 0 then Exit Sub
if Not IsNumeric(lngIDToFind) then
msgbox "You must supply a number.", vbinformation
Goto TryAgain
end if
lngIDToFind = clng(lngIDToFind)
varLastRecordBM = ors.BookMark
ors.Find "ID=" & lngIDToFind
If ors.EOF Then
msgbox "ID not found.", vbinformation
ors.BookMark = varLastRecordBM ' or ors.movefirst
else
' msgbox "ID found.", vbinformation
...
End If
Hope this helps.