Question : Show Currency on calculation value within a totals query that has a total of sum?

I have a totals subquery that is connected to another query (qTotals_SM) where fields refuse to show in a currency format.  

I've provided the sql below as an example and the problem I'm having are with two fields - Budget Total and Actual Total.  They have to be placed as Sum values on the query Total: result to get the correct calculations and yet even despite the Format(Value, "Currency") they are still not formatted to currency.  However if I change to the Total: as Group they format correctly as currency.

How can I keep the Sum as the Total: setting and yet correctly format to currency?

I've provided the query and the results via images.  Thus when I have the query set up as Query1 then Results1 is the final result and Query2 goes along with Results2.  Then finally I've  also provided what the qTotals_SM is like.  As you can see the TotCost and TotCost1 columns uses some calculated fields to get the results.

Please also note the values of the calculation in images (both show the last set of records in the query) - Calculation1 for Query1 and Calculation2 for Query2....  Calculation1 has the correct final results but fails to format in currency.  Calculation2 has the incorrect final results but does format in currency.

Please review the images before replying to this message.  Thanks in advance!
1:
2:
3:
SELECT DISTINCTROW "Medical" AS Category, "" AS CIP, qTotals_SM.Requisition, qTotals_SM.PONumber, qTotals_SM.Vendor, qTotals_SM.Address, qTotals_SM.Contact, qTotals_SM.Phone, qTotals_SM.Extension, "" AS gry, qTotals_SM.Equip AS ItemCode, qTotals_SM.Item, qTotals_SM.Name AS Description, qTotals_SM.Manuf, qTotals_SM.Model_no, qTotals_SM.Dimensions, qTotals_SM.Electrical, qTotals_SM.Emer_power, qTotals_SM.Plumbing, qTotals_SM.Mechanical, qTotals_SM.Standard AS [Spec Approval], qTotals_SM.DateApproved AS [Approval Date], qTotals_SM.ApprovedBy AS [Approved By], [Furnish] & "F" & [Install] & "I" AS Resp, "" AS gry2, Sum(qTotals_SM.totqty) AS [QTY Total], Sum(qTotals_SM.Ex_Quantity) AS [QTY Exist], Sum(qTotals_SM.newqty) AS [QTY New], qTotals_SM.ListPrice AS [Budget Unit Cost], qTotals_SM.ReqQuotePrice, Sum(Format([TotCOST1],"Currency")) AS [Budget Total], qTotals_SM.UnitCost AS [Actual Unit Cost], Sum(Format([TotCOST],"Currency")) AS [Actual Total], Format([TotCOST]-[TotCOST1],"Currency") AS [Variance Total], "" AS gry3, "" AS [Receiving Number], "" AS [Receive 1], "" AS [Receive 2], "" AS [Receive 3], "" AS [Receive 4], "" AS [Order Complete], "" AS [Owner Acceptance], "" AS Comments
FROM qTotals_SM
GROUP BY "Medical", "", qTotals_SM.Requisition, qTotals_SM.PONumber, qTotals_SM.Vendor, qTotals_SM.Address, qTotals_SM.Contact, qTotals_SM.Phone, qTotals_SM.Extension, "", qTotals_SM.Equip, qTotals_SM.Item, qTotals_SM.Name, qTotals_SM.Manuf, qTotals_SM.Model_no, qTotals_SM.Dimensions, qTotals_SM.Electrical, qTotals_SM.Emer_power, qTotals_SM.Plumbing, qTotals_SM.Mechanical, qTotals_SM.Standard, qTotals_SM.DateApproved, qTotals_SM.ApprovedBy, [Furnish] & "F" & [Install] & "I", "", qTotals_SM.ListPrice, qTotals_SM.ReqQuotePrice, qTotals_SM.UnitCost, Format([TotCOST]-[TotCOST1],"Currency"), "", "", "", "", "", "", "", "", "";
Attachments:
 
 
 
Results1
Results1
 
 
Calculation1
Calculation1
 
 
 
 
Results2
Results2
 
 
Calculation2
Calculation2
 

Answer : Show Currency on calculation value within a totals query that has a total of sum?

<How can I keep the Sum as the Total: setting and yet correctly format to currency?>
Try removing the Format  
[Budget Total]:[TotCOST1]


Sum

Right click on this column and select Properties, select currency in the Format
Random Solutions  
 
programming4us programming4us