I have a main form (Form A) displaying a combo box , a command button (Find), and a subform control. The combo box as two values to select from.
Based on the value selected from the combo box, when the user presses the command button the fields on the subform will be populated with associated values. When a value is selected from the combo box, one of two queries will be called to populate the fields on the subform.
If I assign the recordsource property on the subform to one of the queries, the main form displays the correct field. But I want the user to dynamically select which query to use to populate the subform fields.
Any idea how to proceed?
Based on the value selected from the combo box, when the user presses the command button the fields on the subform will be populated with associated values. When a value is selected from the combo box, one of two queries will be called to populate the fields on the subform.
If I assign the recordsource property on the subform to one of the queries, the main form displays the correct field. But I want the user to dynamically select which query to use to populate the subform fields.
Any idea how to proceed?