arthuro111
Programmer
The following code which I got from the archives here keeps giving me a "Method or data member not found" error on the rs.FindFirst "pkey = 5"
Private Sub select_store_location_Click()
Dim lPK As Long
Dim rs As Recordset
DoCmd.DoMenuItem acFormBar, acRecordsMenu, 5, , acMenuVer70
lPK = Forms![StoreAudit]![pkey]
Me.Requery
Set rs = Me.RecordsetClone
rs.FindFirst "pkey = 5"
If Not rs.nomatch Then Me.Bookmark = rs.Bookmark
Set rs = Nothing
NOTE: I have the autonumber pkey value hardcoded just to try to get this to work, it was
rs.FindFirst "pkey =" & lPK
I've tried a bunch of things with no success. Help please! I have a feeling there's something simple I'm missing.
Thanks,
Arthur
Private Sub select_store_location_Click()
Dim lPK As Long
Dim rs As Recordset
DoCmd.DoMenuItem acFormBar, acRecordsMenu, 5, , acMenuVer70
lPK = Forms![StoreAudit]![pkey]
Me.Requery
Set rs = Me.RecordsetClone
rs.FindFirst "pkey = 5"
If Not rs.nomatch Then Me.Bookmark = rs.Bookmark
Set rs = Nothing
NOTE: I have the autonumber pkey value hardcoded just to try to get this to work, it was
rs.FindFirst "pkey =" & lPK
I've tried a bunch of things with no success. Help please! I have a feeling there's something simple I'm missing.
Thanks,
Arthur