Hello All:
I have the following sql in access. I would like the count of the processing time field with a criteria in the Pay field as follows (count all blank fields, count all fields with N/A, and only count fields with Pay AND the check amount is >250000).
SELECT Count([B&B No Negatives and Processing Time].[Processing Time]) AS [CountOfProcessing Time], [B&B No Negatives and Processing Time].[Processing Time]
FROM [B&B No Negatives and Processing Time]
WHERE ((([B&B No Negatives and Processing Time].[pay]) Is Null Or ([B&B No Negatives and Processing Time].[pay])="N/A")) OR ((([B&B No Negatives and Processing Time].[pay])="pay") AND (([B&B No Negatives and Processing Time].[Total Check Amount])>250000))
GROUP BY [B&B No Negatives and Processing Time].[Processing Time];
The query is working partially, but right now, its giving me the count for each processing time e.g.
count processing time
4 0
5 2
56 3
So, it's group all the processing time and count the number it finds in each group. How do I modify this sql so that it just gives me the total count of the processing time (e.g.) for the pay and check amouunt fields that meet the criteria?
Thanks so much for your help.
SharonMee
I have the following sql in access. I would like the count of the processing time field with a criteria in the Pay field as follows (count all blank fields, count all fields with N/A, and only count fields with Pay AND the check amount is >250000).
SELECT Count([B&B No Negatives and Processing Time].[Processing Time]) AS [CountOfProcessing Time], [B&B No Negatives and Processing Time].[Processing Time]
FROM [B&B No Negatives and Processing Time]
WHERE ((([B&B No Negatives and Processing Time].[pay]) Is Null Or ([B&B No Negatives and Processing Time].[pay])="N/A")) OR ((([B&B No Negatives and Processing Time].[pay])="pay") AND (([B&B No Negatives and Processing Time].[Total Check Amount])>250000))
GROUP BY [B&B No Negatives and Processing Time].[Processing Time];
The query is working partially, but right now, its giving me the count for each processing time e.g.
count processing time
4 0
5 2
56 3
So, it's group all the processing time and count the number it finds in each group. How do I modify this sql so that it just gives me the total count of the processing time (e.g.) for the pay and check amouunt fields that meet the criteria?
Thanks so much for your help.
SharonMee