Hi Eveyone
This is a little complicated so i'll try explain it the best i can.
Im creating a system for payroll, people get a bonus depending on if they are able to do things like flexable shifts, this bonus is a percentage of the standard hourly rate that they get paid. to work this out I created a query for each calculation and then used the following method for each one, only changing the percentage.
X = The value name
Y = the percentage
X: ((((([hourly rate]*[contracted hours])/100)*Y)*52.178)/12)
based on if the tick box for this allowance is true on the persons record.
they all follow this exact formula.
There is then a query that pulls these together:
SELECT qry_core_earnings.[core Earnings] AS TheCoreEarnings, Nz([allowance Money],0) AS TheAllowanceAmount, Nz([rotation Ammount],0) AS TheRotationAmount, Nz([flex Ammount],0) AS TheFlexAmount, Nz([core Earnings],0)+Nz([allowance Money],0)+Nz([rotation Ammount],0)+Nz([flex Ammount],0) AS TheTotalAmount, qry_core_earnings.ID
FROM ((qry_core_earnings LEFT JOIN qry_shift_allowance ON qry_core_earnings.ID = qry_shift_allowance.ID) LEFT JOIN qry_flex_ammount ON qry_core_earnings.ID = qry_flex_ammount.ID) LEFT JOIN qry_rotation_ammount ON qry_core_earnings.ID = qry_rotation_ammount.ID;
Now when it gets to this part things get a bit strange with the formatting. These are supposed to be currency values, however only TheCoreEarnings and TheTotalAmount actually let me format the fields, ether in the query or in the form, the others all have a blank drop down.
The root field [core earnings] is a currency field, none of the other query's have formatting.
Any Ideas?
Thanks