T
Tirelle
I am still working on an application where currently I need to Calculate
charge totals for each type of charge per month. Here are the details.
tblCharges with applicable fields QBRMonth as Date, QBR as Text,
ChargeType as string, and HoursOfCharge as Double.
QBRMonth represents the first day of the month of which charge was
performed. There will be several charges with this date.
QBR is an Identifier for which period Charge is a part of.
ChargeType represents type of charge performed. 4 Options = (Normal,
Equalizing, Partial and Test Discharge )
HoursOfCharge represents time to perform a given charge.
I need to Count the number of each type of charge per month and sum the
totals of each charge for that same period.
Here is SQL statement I am currently working with to count Equalizing charges.
SELECT qryCharges.QBRMonth, qryCharges.Type, qryCharges.QBR
(SELECT Count(qryCharges.Type) FROM qryCharges AS M2
Where M2.QBRMonth = qryCharges.QBRMonth And qryCharges.Type =
"EQUALIZING" ) AS Equalizing
FROM qryCharges;
It seems to work to count the number of charges per month, but I have
duplicates in results. I believe its a grouping issue. Please Help
Thank You
charge totals for each type of charge per month. Here are the details.
tblCharges with applicable fields QBRMonth as Date, QBR as Text,
ChargeType as string, and HoursOfCharge as Double.
QBRMonth represents the first day of the month of which charge was
performed. There will be several charges with this date.
QBR is an Identifier for which period Charge is a part of.
ChargeType represents type of charge performed. 4 Options = (Normal,
Equalizing, Partial and Test Discharge )
HoursOfCharge represents time to perform a given charge.
I need to Count the number of each type of charge per month and sum the
totals of each charge for that same period.
Here is SQL statement I am currently working with to count Equalizing charges.
SELECT qryCharges.QBRMonth, qryCharges.Type, qryCharges.QBR
(SELECT Count(qryCharges.Type) FROM qryCharges AS M2
Where M2.QBRMonth = qryCharges.QBRMonth And qryCharges.Type =
"EQUALIZING" ) AS Equalizing
FROM qryCharges;
It seems to work to count the number of charges per month, but I have
duplicates in results. I believe its a grouping issue. Please Help
Thank You