I have a query that I am trying to obtain just totals in the output:
Primary: DCount("[ClockNbr]","1-StationVerifyTbl","[Locations]='Assembly 1-3Ton' and [StaPrimary]=True")
Back: DCount("[ClockNbr]","1-StationVerifyTbl","[Locations]='Assembly 1-3Ton' and [StaUp]=True")
Up: DCount("[ClockNbr]","1-StationVerifyTbl","[Locations]='Assembly 1-3Ton' and [StaBack]=True")
This works and gives me the total I need for those fields.
I also need a totals for another field that I will call people. There could be 100 records (ClockNbr) in this field but I only want to see the total number of Distinct Records. I would like the results to be shown as follows:
People Primary Up Back
48 158 125 130
I am getting these results in the Primary Up & Back but I need the count for the People Column to be count of
Distinct Records. I hope this makes sense and please help. I would like the Distinct count of ClockNbr with the same criteria as above.
Primary: DCount("[ClockNbr]","1-StationVerifyTbl","[Locations]='Assembly 1-3Ton' and [StaPrimary]=True")
Back: DCount("[ClockNbr]","1-StationVerifyTbl","[Locations]='Assembly 1-3Ton' and [StaUp]=True")
Up: DCount("[ClockNbr]","1-StationVerifyTbl","[Locations]='Assembly 1-3Ton' and [StaBack]=True")
This works and gives me the total I need for those fields.
I also need a totals for another field that I will call people. There could be 100 records (ClockNbr) in this field but I only want to see the total number of Distinct Records. I would like the results to be shown as follows:
People Primary Up Back
48 158 125 130
I am getting these results in the Primary Up & Back but I need the count for the People Column to be count of
Distinct Records. I hope this makes sense and please help. I would like the Distinct count of ClockNbr with the same criteria as above.