The recordset might not have a current bookmark.
That can happen after adding a new record, deleting a record, moving before
the first record, moving after the last record, using a Find method or Seek
that results in NoMatch, or if the recordset is loaded/filtered such that it
has no records.
Alternatively, the bookmark may be out of date if the recordset has been
reopened, requeried, or reassigned.
After sorting that out, it might be safer to perform a binary comparison
If StrComp(rs.Bookmark, varTemp, vbBinaryCompare) = 0
since bookmarks are binary data.

Signature
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
> Hi,
>
[quoted text clipped - 38 lines]
>
> swas
swas - 21 Jul 2007 15:02 GMT
Allen,
Thanks for that.
I definately have a current record, and your StrComp allows the comparison.
Not sure why the comparison I used didn't work, but as usual your help is
appreciated.
swas
> The recordset might not have a current bookmark.
>
[quoted text clipped - 51 lines]
> >
> > swas