Hi there,
I am using a query to get a rough count of how many students have had more than one tutorial. This was working fine until I put a WHERE clause to add a 'TO' and 'FROM' date statement.
Here is my SQL:
Does anyone have any idea where I may have gone wrong?
Thanks
Kate
I am using a query to get a rough count of how many students have had more than one tutorial. This was working fine until I put a WHERE clause to add a 'TO' and 'FROM' date statement.
Here is my SQL:
Code:
SELECT Count(vTbl.StudentID) AS StudentsMore
FROM (SELECT StudentID
FROM tbl_Tutorial
GROUP BY StudentID
HAVING Count(TutorialNo) > 1) AS vTbl, tbl_Tutorial
WHERE (((tbl_Tutorial.Date) Between [Forms]![frm_Dates]![txtFrom] And [Forms]![frm_Dates]![txtTo]));
Does anyone have any idea where I may have gone wrong?
Thanks
Kate