D
Dos Equis
Hi all,
I am trying to calculate pay for employees using a query. The Pay
query pulls calculated totals from 2 other queries and multiplies them
by the appropriate pay in a table. It works like this:
PayTable AreaTable qryNumberofHomes
qrySubs
PayType HomesInArea Carrier - GroupBy
Carrier - GroupBy
PayAmount SumOfHomes
SumOfSubs
QryPay
Carrier - GroupBy
HomePay: CCur(qryNumberofHomes!SumOfHomes*PayTable!PayAmount)
SubPay: CCur(qrySubs!SumOfSubs*PayTable!PayAmount)
Pay: HomePay+SubPay
I should have a QryPay that resembles:
Joe $5.00 $3.00 $8.00
Instead I either get an error stating that I am not using an aggregate
expresion or an error stating that the field is too small for the data
and try reducing the data. I am working with 6 employees and with a
CCur function if I understand properly, it's reduced to $???.??. None
of them are making more than $400.00 and week and most are under $70.
Please help.
Byron
I am trying to calculate pay for employees using a query. The Pay
query pulls calculated totals from 2 other queries and multiplies them
by the appropriate pay in a table. It works like this:
PayTable AreaTable qryNumberofHomes
qrySubs
PayType HomesInArea Carrier - GroupBy
Carrier - GroupBy
PayAmount SumOfHomes
SumOfSubs
QryPay
Carrier - GroupBy
HomePay: CCur(qryNumberofHomes!SumOfHomes*PayTable!PayAmount)
SubPay: CCur(qrySubs!SumOfSubs*PayTable!PayAmount)
Pay: HomePay+SubPay
I should have a QryPay that resembles:
Joe $5.00 $3.00 $8.00
Instead I either get an error stating that I am not using an aggregate
expresion or an error stating that the field is too small for the data
and try reducing the data. I am working with 6 employees and with a
CCur function if I understand properly, it's reduced to $???.??. None
of them are making more than $400.00 and week and most are under $70.
Please help.
Byron