Hi All
I've created a ridiculously long SQL statement which probably could be much shorter and more efficient if I was clever enough. Still, it works perfectly, only I now need to add to the end of it a date constraint i.e. BETWEEN #12/25/04# AND #12/25/06# for example.
However, I am getting the following error message.
I would be eternally grateful of any help or advice on how to make this work.
Many thanks
Dan
I've created a ridiculously long SQL statement which probably could be much shorter and more efficient if I was clever enough. Still, it works perfectly, only I now need to add to the end of it a date constraint i.e. BETWEEN #12/25/04# AND #12/25/06# for example.
Code:
SELECT Avg(results.resultsQ1) AS AvgOfresultsQ1, Avg(results.resultsQ2) AS AvgOfresultsQ2, Avg(results.resultsQ3) AS AvgOfresultsQ3, Avg(results.resultsQ4) AS AvgOfresultsQ4, Avg(results.resultsQ5) AS AvgOfresultsQ5, Avg(results.resultsQ6) AS AvgOfresultsQ6, Avg(results.resultsQ7) AS AvgOfresultsQ7, Avg(results.resultsQ8) AS AvgOfresultsQ8, Avg(results.resultsQ9) AS AvgOfresultsQ9, Avg(results.resultsQ10) AS AvgOfresultsQ10, Avg(results.resultsQ11) AS AvgOfresultsQ11, Avg(results.resultsQ12) AS AvgOfresultsQ12, Avg(results.resultsQ13) AS AvgOfresultsQ13, Avg(results.resultsQ14) AS AvgOfresultsQ14, Avg(results.resultsQ15) AS AvgOfresultsQ15 FROM results WHERE results.participantCourseID=1
However, I am getting the following error message.
Code:
"You tried to execute a query that does not include the specified expression 'respondentCompleted' as part of an aggregate function.
I would be eternally grateful of any help or advice on how to make this work.
Many thanks
Dan