I am trying to create a report to show totals for several different inspections types based on a date range.
Currently, I only have three fields in the query, inspection type (group by), inspection type (count) and inspection date (where, date range).
I am trying to use a Dlookup to show the totals on the report. If I remove the date parameter from the query and only get the grand total for each inspection type from the table then the Dlookup will work. If the date parameter is left in the query than all I get is an #error on the report .
Should I be using something besides a Dlookup to show these to show these totals for the proper date range.
This is the query I am using;
SELECT inspections.inspection_type, Count(inspections.inspection_type) AS CountOfinspection_type
FROM inspections
WHERE (((inspections.inspection_date)>=[begining date] And (inspections.inspection_date)<=[ending date]))
GROUP BY inspections.inspection_type;
GGuy
Currently, I only have three fields in the query, inspection type (group by), inspection type (count) and inspection date (where, date range).
I am trying to use a Dlookup to show the totals on the report. If I remove the date parameter from the query and only get the grand total for each inspection type from the table then the Dlookup will work. If the date parameter is left in the query than all I get is an #error on the report .
Should I be using something besides a Dlookup to show these to show these totals for the proper date range.
This is the query I am using;
SELECT inspections.inspection_type, Count(inspections.inspection_type) AS CountOfinspection_type
FROM inspections
WHERE (((inspections.inspection_date)>=[begining date] And (inspections.inspection_date)<=[ending date]))
GROUP BY inspections.inspection_type;
GGuy