Hello,
I am using Findfirst to move the current focus to a record identified by an ID. The ID is my primary key, type autonumber.
I have my record set, I know the ID but I am confused by the syntax of Findfirst and the subsequent use of bookmarks. I am calling this from the OnActivate event
-
Dim rst As Object
Set rst = Me.RecordsetClone
rst.FindFirst "[ID] = " & [TempVars]![TempID]
If Not rst.NoMatch Then
Me.Bookmark = rst.Bookmark
End If
I have no compilations errors, the NoMatch test passes but I always end up on the first entry of my record set; not with the ID I supplied
I am using Findfirst to move the current focus to a record identified by an ID. The ID is my primary key, type autonumber.
I have my record set, I know the ID but I am confused by the syntax of Findfirst and the subsequent use of bookmarks. I am calling this from the OnActivate event
-
Dim rst As Object
Set rst = Me.RecordsetClone
rst.FindFirst "[ID] = " & [TempVars]![TempID]
If Not rst.NoMatch Then
Me.Bookmark = rst.Bookmark
End If
I have no compilations errors, the NoMatch test passes but I always end up on the first entry of my record set; not with the ID I supplied