J
Jane
To run reports in our application we have a form with fields in which users
enter criteria, like startdate, enddate, state, etc. Our queries on which
the reports are based have criteria like 'Between
[Forms]![Report]![fldStartDate] And [Forms]![Report]![fldEndDAte]'. Works
great for the actual report, but when I access this query in code, like
'Select * from qsFinancialOwes' (which has the above criteria for one of the
fields) I get a message 'Expecting 2 parameters'. BTW, my report form is
loaded and fldStartDate and fldEndDate both have values; the report runs, but
any code access this query in the same routine doesn't.
I believe I've had this work before but can't remember what I did. Any ideas?
enter criteria, like startdate, enddate, state, etc. Our queries on which
the reports are based have criteria like 'Between
[Forms]![Report]![fldStartDate] And [Forms]![Report]![fldEndDAte]'. Works
great for the actual report, but when I access this query in code, like
'Select * from qsFinancialOwes' (which has the above criteria for one of the
fields) I get a message 'Expecting 2 parameters'. BTW, my report form is
loaded and fldStartDate and fldEndDate both have values; the report runs, but
any code access this query in the same routine doesn't.
I believe I've had this work before but can't remember what I did. Any ideas?