Hey guys,
In relation to my post before, I have a problem regarding populating a subform with a query, whose information is based on the selection in a listbox.
I have four listboxes, who're linked as to ultimately select one company, and I want to display said company's employees in the subform.
I have created a query with the relevant fields, and have entered in the criteria of the CompanyName field: - [Forms]![ContactLookup]![cboCompanyName]
I have then created a command box, which I presume I need to code to populate the subform with the queried data. However, I don't know how to do this, and haven't managed to work it out from the faqs available.
All helps is much appreciated,
Antoni
In relation to my post before, I have a problem regarding populating a subform with a query, whose information is based on the selection in a listbox.
I have four listboxes, who're linked as to ultimately select one company, and I want to display said company's employees in the subform.
I have created a query with the relevant fields, and have entered in the criteria of the CompanyName field: - [Forms]![ContactLookup]![cboCompanyName]
I have then created a command box, which I presume I need to code to populate the subform with the queried data. However, I don't know how to do this, and haven't managed to work it out from the faqs available.
All helps is much appreciated,
Antoni