G
Guest
Is it possible to use the Group By function to group results from a query on
a Quarterly basis (Jan - Mar, etc)? I have sucessfully used the Group By
function with Year and Month, but not Quarter.
I am using Access 2003 in cordination with some graphing software. I want
to illustrate the results I receive from a Select Count (*) query on a
quarterly basis into the graph. However I am having problems figuring our if
this is even possible.
Here is my current query:
sqlCmd.CommandText = _
"Select count(*), Year([Submit Date/Time]) " & _
"From Table1 [Submit Date/Time]>= " & strYTD1 & " " & _
"And [submit date/time]< " & strYTD2 & " " & _
"Group By Year([Submit Date/Time]) Order By Year([Submit Date/Time])"
When I change the "Year" text within the Group By Functions to "Quarter", I
receive an undefined function error message.
Any feedback on if this is possible or how I might get started on making
this work is appreciated!
Thanks,
Keith
a Quarterly basis (Jan - Mar, etc)? I have sucessfully used the Group By
function with Year and Month, but not Quarter.
I am using Access 2003 in cordination with some graphing software. I want
to illustrate the results I receive from a Select Count (*) query on a
quarterly basis into the graph. However I am having problems figuring our if
this is even possible.
Here is my current query:
sqlCmd.CommandText = _
"Select count(*), Year([Submit Date/Time]) " & _
"From Table1 [Submit Date/Time]>= " & strYTD1 & " " & _
"And [submit date/time]< " & strYTD2 & " " & _
"Group By Year([Submit Date/Time]) Order By Year([Submit Date/Time])"
When I change the "Year" text within the Group By Functions to "Quarter", I
receive an undefined function error message.
Any feedback on if this is possible or how I might get started on making
this work is appreciated!
Thanks,
Keith