C
Chris
Hi Josh,
I am using the following code for this, don't know
if it's the best way but it works for me:
Sub MoveToContact(f As Form, ContactID As Integer)
'move to the specified contact record
Dim rst As Recordset
Set rst = f.RecordsetClone
rst.Find "ContactID = " & ContactID
If rst.EOF = True Then
'record not found
MsgBox ("Record not found.")
Else
'Synchronize the recordset and the form
f.Bookmark = rst.Bookmark
End If
Set rst = Nothing
End Sub
Regards
Chris
I am using the following code for this, don't know
if it's the best way but it works for me:
Sub MoveToContact(f As Form, ContactID As Integer)
'move to the specified contact record
Dim rst As Recordset
Set rst = f.RecordsetClone
rst.Find "ContactID = " & ContactID
If rst.EOF = True Then
'record not found
MsgBox ("Record not found.")
Else
'Synchronize the recordset and the form
f.Bookmark = rst.Bookmark
End If
Set rst = Nothing
End Sub
Regards
Chris