If anyone could please help???? I'm really new to Access and can't see
where there was a change in the program from last month - other than
the database size is larger.
Here is some additional information- the query works fine until I click
on the Totals option to request a sum of one of the fields (want to get
sums of groups)
This one is with out the sum: (works here)
SELECT [Property Charges Monthly].[Property Number], [Property Charges
Monthly].[Item Title], [Property Charges Monthly].[Item Note],
[Property Charges Monthly].[Number Of Items], [Property Charges
Monthly].[Item Charge], [Property Charges Monthly].[Price for Misc
Items], [SumOfNumber Of Items]*(IIf([Price for Misc Items]=0,[Property
Charges Monthly]![Item Charge],[Property Charges Monthly]![Price for
Misc Items])) AS Expr2, ItemLookUp.[Maintenance Charge],
ItemLookUp.[Cleaning Charge], ItemLookUp.[Specialty Charge],
ItemLookUp.[Supplies Charge], ItemLookUp.[Spring Cleaning Charge],
ItemLookUp.ADJUSTMENTS, [Statement Month] AS Expr3
FROM ItemLookUp INNER JOIN [Property Charges Monthly] ON
ItemLookUp.[Item Title] = [Property Charges Monthly].[Item Title]
ORDER BY [Property Charges Monthly].[Property Number], [Property
Charges Monthly].[Item Title];
And here it is with the sum
gives weird characters in the Item.Note
and incorrect sum of Number of Items)
SELECT [Property Charges Monthly].[Property Number], [Property Charges
Monthly].[Item Title], [Property Charges Monthly].[Item Note],
[Property Charges Monthly].[Number Of Items], [Property Charges
Monthly].[Item Charge], [Property Charges Monthly].[Price for Misc
Items], [SumOfNumber Of Items]*(IIf([Price for Misc Items]=0,[Property
Charges Monthly]![Item Charge],[Property Charges Monthly]![Price for
Misc Items])) AS Expr2, ItemLookUp.[Maintenance Charge],
ItemLookUp.[Cleaning Charge], ItemLookUp.[Specialty Charge],
ItemLookUp.[Supplies Charge], ItemLookUp.[Spring Cleaning Charge],
ItemLookUp.ADJUSTMENTS, [Statement Month] AS Expr3
FROM ItemLookUp INNER JOIN [Property Charges Monthly] ON
ItemLookUp.[Item Title] = [Property Charges Monthly].[Item Title]
GROUP BY [Property Charges Monthly].[Property Number], [Property
Charges Monthly].[Item Title], [Property Charges Monthly].[Item Note],
[Property Charges Monthly].[Number Of Items], [Property Charges
Monthly].[Item Charge], [Property Charges Monthly].[Price for Misc
Items], ItemLookUp.[Maintenance Charge], ItemLookUp.[Cleaning Charge],
ItemLookUp.[Specialty Charge], ItemLookUp.[Supplies Charge],
ItemLookUp.[Spring Cleaning Charge], ItemLookUp.ADJUSTMENTS, [Statement
Month]
ORDER BY [Property Charges Monthly].[Property Number], [Property
Charges Monthly].[Item Title];
Thanks for your time!