Just check if below gives some guidelines :
Code:
SELECT
[coreEarnings] AS TheCoreEarnings,
NZ([allowanceMoney],0) AS TheAllowanceAmount,
NZ([rotationAmount],0) AS TheRotationAmount,
NZ([flexAmount],0) AS TheFlexAmount,
NZ([coreEarnings],0)+NZ([allowanceMoney],0)+NZ([rotationAmount],0)+NZ([flexAmount],0) AS TheTotalAmount
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;
Have taken qry_core_earnings on the Left Side (assuming that there always will be core earnings).
Advisable to avoid space in Table Field names.
Edit : Wondering whether we can avoid the need for the 4 queries.
Thanks