G
Guest
I have a report with a query as its data source. The query includes 3 number fields using the Nz function (it is based on several other queries including 2 summary queries). I want to display these 3 fields in text boxes on the report using the Fixed format with 2 decimal places (as currency without the £ sign e.g. 750.00).
If a text box has 1 of the 3 summary fields as its data source, the list of Formats in the Properties Sheet is blank. If the data source is any other field the Formats work as they should. I can select Fixed format with the control unbound, but when it is then bound to a summary field the display is incorrect (e.g. 750 displays as 750 instead of the required 750.00).
The queries seem to work fine but I have pasted the SQL below. Does anyone have any suggestions?
Thank
qryPartsCosts:
SELECT qryProjectRef.lngProjectID, qryProjectRef.strProjectRef, qryNameAndAddress.strAddress,
Nz(qryPartsCostsTotal.curTotaParts,0) AS curTotalParts,
Nz(qryPartsCostsTotal2.curTotalLabourSundries,0) AS curTotalLabourSundries,
Nz(qryPartsCostsTotal.curTotaParts+qryPartsCostsTotal2.curTotalLabourSundries,0) AS curTota
FROM ((qryProjectRef
INNER JOIN qryNameAndAddress ON qryProjectRef.lngProjectID = qryNameAndAddress.lngProjectID)
LEFT JOIN qryPartsCostsTotal ON qryProjectRef.lngProjectID = qryPartsCostsTotal.lngProjectID)
LEFT JOIN qryPartsCostsTotal2 ON qryProjectRef.lngProjectID = qryPartsCostsTotal2.lngProjectID
qryPartsCostsTotal:
SELECT tblCosting.lngProjectID, SUM(tblCosting.sngQty*tblEquipment.curSalePrice*(100-tblCosting.sngDiscount)/100) AS curTotaPart
FROM tblCosting INNER JOIN tblEquipment ON tblCosting.lngEquipmentID = tblEquipment.lngEquipmentI
GROUP BY tblCosting.lngProjectID
qryPartsCostsTotal2:
SELECT tblSundry.lngProjectID, Nz(Sum(tblSundry.sngQty*tblSundry.curSalePrice*(100-tblSundry.sngDiscount)/100),0) AS curTotalLabourSundrie
FROM tblSundr
GROUP BY tblSundry.lngProjectID
If a text box has 1 of the 3 summary fields as its data source, the list of Formats in the Properties Sheet is blank. If the data source is any other field the Formats work as they should. I can select Fixed format with the control unbound, but when it is then bound to a summary field the display is incorrect (e.g. 750 displays as 750 instead of the required 750.00).
The queries seem to work fine but I have pasted the SQL below. Does anyone have any suggestions?
Thank
qryPartsCosts:
SELECT qryProjectRef.lngProjectID, qryProjectRef.strProjectRef, qryNameAndAddress.strAddress,
Nz(qryPartsCostsTotal.curTotaParts,0) AS curTotalParts,
Nz(qryPartsCostsTotal2.curTotalLabourSundries,0) AS curTotalLabourSundries,
Nz(qryPartsCostsTotal.curTotaParts+qryPartsCostsTotal2.curTotalLabourSundries,0) AS curTota
FROM ((qryProjectRef
INNER JOIN qryNameAndAddress ON qryProjectRef.lngProjectID = qryNameAndAddress.lngProjectID)
LEFT JOIN qryPartsCostsTotal ON qryProjectRef.lngProjectID = qryPartsCostsTotal.lngProjectID)
LEFT JOIN qryPartsCostsTotal2 ON qryProjectRef.lngProjectID = qryPartsCostsTotal2.lngProjectID
qryPartsCostsTotal:
SELECT tblCosting.lngProjectID, SUM(tblCosting.sngQty*tblEquipment.curSalePrice*(100-tblCosting.sngDiscount)/100) AS curTotaPart
FROM tblCosting INNER JOIN tblEquipment ON tblCosting.lngEquipmentID = tblEquipment.lngEquipmentI
GROUP BY tblCosting.lngProjectID
qryPartsCostsTotal2:
SELECT tblSundry.lngProjectID, Nz(Sum(tblSundry.sngQty*tblSundry.curSalePrice*(100-tblSundry.sngDiscount)/100),0) AS curTotalLabourSundrie
FROM tblSundr
GROUP BY tblSundry.lngProjectID