B
Brian via AccessMonster.com
I am using the code below to synchronize two forms. The relationship is one to many. It works fine until I go to a record in the main form that doesn't have any records in the popup form. Check18 is a check box. When checked the popup is open.
Private Sub Form_Current()
If Check18 Then
Dim F As Form
Set F=Forms![popup]
F.RecordSource="Select * FROM popup Where [id]='" & Me![id] & "';"
F.Requery
End If
End Sub
Private Sub Form_Current()
If Check18 Then
Dim F As Form
Set F=Forms![popup]
F.RecordSource="Select * FROM popup Where [id]='" & Me![id] & "';"
F.Requery
End If
End Sub