With Forms!MyFormName
.recordsetclone.findfirst "ID = 1"
if .recordsetclone.nomatch then
msgbox "Record not found."
else
.bookmark = .recordsetclone.bookmark
!CustomerName.setfocus
endif
End With
Public Declare Function SetCursorPos Lib "user32" (ByVal x As Long, ByVal y As Long) As Long
SetCursorPos 200, 100
End Function
Open in new window