My application needs a report to show two things about each service that our company provides (landscape biz, services include mowing, mulching, fertilizer, etc.
The report will show:
The two service items are 1) Count, and 2) Man Hours.
Further, I need to specify several query parameters when running a report. Such as Property and date range.
I have a form that prompts the user for the property and date range. It plugs this information into an aggregate query via VBA. The query uses "group by" and expressions.
If I didn't care about specifying a date range the form, vba, query, and report would be fine.
When I add the date field to the query, it automatically takes on the group by clause which causes the report to show man hours and count per DATE.
I need the report to show the count and man hours for each service within a given data range (not for each date).
I've tried several things but just can't get it to work the way I need it to work.
So, my question is: How can I specify a date range against a query that does not contain a date field. Or perhaps, the question should be: how do I include a date field in my aggragate query without the datefield being a "group by". I tried using min and setting the criteria to an earlier date, but I still get prompted for a date when the report runs.
If you've followed along and understand what I am trying to do and can shed some light on this for me, I will be most grateful.
Thanks.
The report will show:
The two service items are 1) Count, and 2) Man Hours.
Further, I need to specify several query parameters when running a report. Such as Property and date range.
I have a form that prompts the user for the property and date range. It plugs this information into an aggregate query via VBA. The query uses "group by" and expressions.
If I didn't care about specifying a date range the form, vba, query, and report would be fine.
When I add the date field to the query, it automatically takes on the group by clause which causes the report to show man hours and count per DATE.
I need the report to show the count and man hours for each service within a given data range (not for each date).
I've tried several things but just can't get it to work the way I need it to work.
So, my question is: How can I specify a date range against a query that does not contain a date field. Or perhaps, the question should be: how do I include a date field in my aggragate query without the datefield being a "group by". I tried using min and setting the criteria to an earlier date, but I still get prompted for a date when the report runs.
If you've followed along and understand what I am trying to do and can shed some light on this for me, I will be most grateful.
Thanks.