I have a couple of queries that use parameter values taken from controls (combo boxes) on a form, e.g.: there's a couple fields that have the below listed as the criteria:
[Forms]![frmMenu_Reports_Main].[SubformContainer]![cboRole1]
[Forms]![frmMenu_Reports_Main].[SubformContainer]![cboRole2]
The queries take a good 20-25 seconds before the output is produced.. Yet, if I run the queries after tweaking them to include in a specific value in those 2 fields (versus pulling values from the combo boxes on the form/subform), they take all of 1 second. So clearly it is the form parameters slowing it down.
The tables used in the queries are linked via an ODBC Connection (to an Oracle DB). So I thought of using a Pass-Through Query instead, though I don't think there's a way to pass a value from the form into a Pass-Through Query, correct? Would it need to be done through VBA?