Field Calculation

JGarza

Board Regular
Joined
Mar 26, 2002
Messages
93
I have a REPORT that sums a column of information. I want Access to prompt me for a Unit Price to be multiplied by the sum.

For example:
2+3+6=11... Prompt me for a "unit price" = $2.00.... which will give me a total of $22.00.
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Base this report off of a query. Define a new field by:
Code:
New_Field:  ([Whatever Fields Get Added Go Here] * [Please Enter A Unit Price])
Of course, you can put whatever you want into the prompt, the important part is to wrap it in the opening and closing brackets.
 
Upvote 0
It didn't work...

Note that I am taking the SUM from a report footer and trying to multiply that by a unit price.
 
Upvote 0
Did you define this field in an underlying query and use that query to feed this report? If so, is the query acting like it should?
 
Upvote 0
I am not sure what you mean???

I went to the original query the report is pulling from, and added the formula you gave.
 
Upvote 0
Why don't you post the SQL that the query has built.
In the Toolbar, View->SQL and copy-paste what is written.
 
Upvote 0

Forum statistics

Threads
1,221,668
Messages
6,161,163
Members
451,687
Latest member
KENNETH ROGERS

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