I'm a novice MS Access programmer. I have a MainForm with SubForm1 and SubForm2. I would like to synchronize records between SubForm1 and SubForm2. The code below gives me the error "No current record".
How can I synchonize records between SubForm1 and SubForm2?
Private Sub cboSubForm2_AfterUpdate()
Dim R As Recordset
Set R = Forms![MainForm]![SubForm1].Form.RecordsetClone
R.FindFirst "TableField = '" & [cboSubForm2] & "'"
Me.Bookmark = R.Bookmark
End Sub
How can I synchonize records between SubForm1 and SubForm2?
Private Sub cboSubForm2_AfterUpdate()
Dim R As Recordset
Set R = Forms![MainForm]![SubForm1].Form.RecordsetClone
R.FindFirst "TableField = '" & [cboSubForm2] & "'"
Me.Bookmark = R.Bookmark
End Sub