I've got a combo box that runs a query based on the record the user selects.
DoCmd.OpenQuery Me.comboComponentType.Column(4)
The query name is in the fourth column of the table. I'd like a subreport to show the results if the query selected. All the queries will have a similar output. How do I get the subreport to use the selected query as the data source?
Better yet, how can I get the combo box to construct a custom query using the fields in the combo box's associated table (ie. Select [me.combobox.column(1)]...etc.), and then show the results of the query on the form in a subreport?
Thanks in advance.
DoCmd.OpenQuery Me.comboComponentType.Column(4)
The query name is in the fourth column of the table. I'd like a subreport to show the results if the query selected. All the queries will have a similar output. How do I get the subreport to use the selected query as the data source?
Better yet, how can I get the combo box to construct a custom query using the fields in the combo box's associated table (ie. Select [me.combobox.column(1)]...etc.), and then show the results of the query on the form in a subreport?
Thanks in advance.