CCur function

user18

New Member
Joined
Apr 30, 2004
Messages
1
Im summarizing data with criteria and its asking me to use the Ccur function. The line is the query is
TotalSales: Sum(CCur([tblOrderDetails!Quantity]*[tblProducts!Price])), it wants me to take out the sum function, and put where in the Totals drop-down list. When I do this it gives me an error message. Why wont it work?
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Looks like a syntax error to me.
SUM is an Excel function - it is not needed within SQL.

It should work if you strip it down to:

TotalSales: CCur([tblOrderDetails!Quantity]*[tblProducts!Price])

You can also look at your syntax for reference to specific fields.
When you run the wizard, it prefers brackets around tables & fields like:

TotalSales: CCur([tblOrderDetails].[Quantity]*[tblProducts].[Price])

Mike
 
Upvote 0

Forum statistics

Threads
1,221,687
Messages
6,161,287
Members
451,695
Latest member
Doug Mize 1024

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top