Let me modify my posting to the following: Below is the SQL of my query. What I really would like to do is to enter one date range and have information (totals) for all fields below fall within that date range. I would like to be able to enter the date range from my form or when from the Combo Box when I select the Query to run. All I am seeking from each field is a total number for the date range, i.e. Form's=225, PQC's=22, ECN's=27, MCN's=114 etc etc. The query SQL below provides that the way it is written. I just would like to enter the Date Range one time for all four Fields on the Fly from the Form.
SELECT DCount("[Date_of_Change]","all_trucks_table","[FORM #]=True AND [Date_of_Change] Between #06/30/05# and #07/31/05#") AS FORMS, DCount("[Date_of_Change]","all_trucks_table","[PQC #]=True AND [Date_of_Change] Between #06/30/05# and #07/31/05#") AS PQC, DCount("[Date_of_Change]","all_trucks_table","[ECN #]=True AND [Date_of_Change] Between #06/30/05# and #07/31/05#") AS ECN, DCount("[Date_of_Change]","all_trucks_table","[MCN #]=True AND [Date_of_Change] Between #06/30/05# and #07/31/05#") AS MCN
FROM all_trucks_table
GROUP BY DCount("[Date_of_Change]","all_trucks_table","[FORM #]=True AND [Date_of_Change] Between #06/30/05# and #07/31/05#"), DCount("[Date_of_Change]","all_trucks_table","[PQC #]=True AND [Date_of_Change] Between #06/30/05# and #07/31/05#"), DCount("[Date_of_Change]","all_trucks_table","[ECN #]=True AND [Date_of_Change] Between #06/30/05# and #07/31/05#"), DCount("[Date_of_Change]","all_trucks_table","[MCN #]=True AND [Date_of_Change] Between #06/30/05# and #07/31/05#");
Sorry for all of the confusion