ClaraBarton
Registered User.
- Local time
- Yesterday, 22:49
- Joined
- Oct 14, 2019
- Messages
- 577
Code:
Private Sub Form_Click()
Dim bm As Variant
Dim rs As Recordset
10 Set rs = Me.Parent.RecordsetClone
'save the bookmark
20 bm = Me.Bookmark
30 With rs
40 .FindFirst "InvoiceID =" & Me.InvoiceID
50 If Not .NoMatch Then
60 Me.Parent.Bookmark = rs.Bookmark
70 End If
80 End With
'reinstate the bookmark
90 Me.Bookmark = bm
100 Set rs = Nothing
End Sub