Stephanie T.
Registered User.
- Local time
- Today, 00:49
- Joined
- Jun 20, 2002
- Messages
- 60
I've got a query that I have copied from the Northwind database in an effort to understand how they have calculated their subtotals on their order form and order subform. I have changed the names of the fields (obviously) to match the names of my fields.
Here is the SQL of the Query:
SELECT DISTINCTROW [tblSalesDetailSynch].ID, Sum(CCur([CasePrice]*[Quantity]*(1-[Discount])/100)*100) AS Subtotal
FROM [tblSalesDetailSynch]
GROUP BY [tblSalesDetailSynch].ID;
But I keep getting "Invalid use of null" The CCur function rounds currency values consistently.
Frankly, I don't even know what this means to clean up the problem. I'm on Access 97.
Thank you,
Stephanie
Here is the SQL of the Query:
SELECT DISTINCTROW [tblSalesDetailSynch].ID, Sum(CCur([CasePrice]*[Quantity]*(1-[Discount])/100)*100) AS Subtotal
FROM [tblSalesDetailSynch]
GROUP BY [tblSalesDetailSynch].ID;
But I keep getting "Invalid use of null" The CCur function rounds currency values consistently.
Frankly, I don't even know what this means to clean up the problem. I'm on Access 97.
Thank you,
Stephanie