How do you compare bookmarks in DAO recordsets?
- From: "David Anderson" <David Anderson@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 11 Jun 2005 13:03:02 -0700
I'm using fairly standard code in Access 2000 to move a form to a specific
record (see code fragment below). It all works fine, but other parts of my
coding depend on the bookmarking process triggering the Form_Current event -
something that does not happen if the form is already at the record being
requested (a situation that may occasionally happen).
I would like to be able to test if the RecordsetClone bookmark is the same
as the form's bookmark but I haven't been able to find a method that works
for DAO recordsets. Can anyone help, please?
Dim rst as Recordset
Set rst = Me.RecordsetClone
rst.Findfirst << logical test here >>
If rst.NoMatch Then
MsgBox "No match was found"
Else
Me.Bookmark = rst.Bookmark
End If
.
- Follow-Ups:
- Re: How do you compare bookmarks in DAO recordsets?
- From: Van T. Dinh
- Re: How do you compare bookmarks in DAO recordsets?
- From: Marshall Barton
- Re: How do you compare bookmarks in DAO recordsets?
- Prev by Date: Re: Bring to front in VBA
- Next by Date: Re: How do you compare bookmarks in DAO recordsets?
- Previous by thread: subform total
- Next by thread: Re: How do you compare bookmarks in DAO recordsets?
- Index(es):
Relevant Pages
|