
Signature
Ripper T Smith
rippertsmith<nospam>@comcast.net
If Not rs.EOF Then
Me.Bookmark = rs.Bookmark
Else
MsgBox "Record was not found"
End If

Signature
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)
> Hello,
>
[quoted text clipped - 16 lines]
>
> Ripper
Dirk Goldgar - 31 Mar 2005 17:44 GMT
> If Not rs.EOF Then
> Me.Bookmark = rs.Bookmark
> Else
> MsgBox "Record was not found"
> End If
But if this code is an an MDB file, not an ADP, you need to check the
NoMatch property instead of EOF (no matter what the wizard says):
If rs.NoMatch Then
MsgBox "Record was not found"
Else
Me.Bookmark = rs.Bookmark
End If

Signature
Dirk Goldgar, MS Access MVP
www.datagnostics.com
(please reply to the newsgroup)