G
Guest
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
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