MikeBronner
Programmer
How do I set up my SQL query to format the recordset in such a way, that I can use multiple the group header/footer in a datareport.
Currently my SQL query is as follows:
"SELECT Shift, Sorter, SUM(Time) FROM tblMinutes WHERE Date BETWEEN #" & dtpStartDate & "# AND #" & dtpEndDate & "# GROUP BY Shift, Sorter"
I currently can display data on my Data report in such a format:
Report Header
Page Header
Detail
Page Footer
Report Footer
however, I need to add another level of grouping here, and would like to display as follows:
Report Header
Page Header
Group Header
Detail
Group Footer
Page Footer
Report Footer
How can I change the above SQL statement to accomplish this?
Thanks for your help. Take Care,
Mike
Currently my SQL query is as follows:
"SELECT Shift, Sorter, SUM(Time) FROM tblMinutes WHERE Date BETWEEN #" & dtpStartDate & "# AND #" & dtpEndDate & "# GROUP BY Shift, Sorter"
I currently can display data on my Data report in such a format:
Report Header
Page Header
Detail
Page Footer
Report Footer
however, I need to add another level of grouping here, and would like to display as follows:
Report Header
Page Header
Group Header
Detail
Group Footer
Page Footer
Report Footer
How can I change the above SQL statement to accomplish this?
Thanks for your help. Take Care,
Mike