1) Mainform Inventory List with subform Supplierssubform
2) Mainform Supplier List with subform Supsubform
When I select Supsubform record it must automatically requery in Supplierssubform
My code works but it should display the record in the Supplierssubform instead it display the record in the Supsubform where i make my selection when I make my selection it should display in Supplierssubform not in the popup form where I make my selection. Any help, suggestions please
Heres my code
Expand|Select|Wrap|Line Numbers
- Private Sub SupplierName_Click()
- Dim rst2 As Recordset
- Dim rst1 As Recordset
- Set rst2 = Forms![Supplier List]!Suppliersubform.Form.RecordsetClone
- 'find the current record
- rst2.FindFirst "ID = " & Me.ID
- Do While Not rst2.EOF
- rst2.AddNew
- rst2!SupplierName = Me.SupplierName
- rst2.Update
- Exit Do
- Loop
- rst2.Close
- Set rst2 = Nothing
- End Sub