I have found a lot of tutorials and questions and answers on how to filter a subform from a parent form, but I am having trouble finding a way to filter a subform with a combobox located in entirely different subform?
Private Sub Combo51_AfterUpdate()
Me.Parent!Address.Form.Filter!Address2.Value = Combo51.Value
End Sub
I am getting an object required Error
Address2 is linked to my companyID(control Source) in the Address Form Combo51 holds the company Id values
Combo51 is located on the subform CompanyInformation and Address2 is located on the subform Address
The companyinformation form is the child of the parent form Called Quotes. So quotes is my main form with two sub forms CompanyInformation and Address. The Id form the parent form is linked to CompanyInformation; now I want to filter from company information to the Address form by using the companyID from combobox51.
I have success updating text and comboboxes from subform to subform but I just don't quite understand the filter method. Any help would be appreciated.
I am using a query for the record source for the Address form
Me.Parent!Address.Form.Filter = "companyID = " & Combo51
although it seems from your limited description as though you might not need subforms at all - are you displaying multiple address / CompanyInformation records for a single Company? – Skippy