calculated field in Query?

CDICKENS

Active Member
Joined
Mar 24, 2002
Messages
498
Hello,

Access newbie here. I have a query that is running against 2 tables. The first table is the INVENTORY table which contains the INVNUMBER. The second table contains the sales records. My query currently outputs INVNUMBER, Sum of Count, Sum of Successful, Sum of Total Sale. I want to add calculated fields that do the following.

1- gives me the last data an item was listed
2- calculates the close rate = [Sum of Successful]/[Sum of Count]
3- Average sale price = [Total Sale]/[Sum of Successful]

I would like to make another table with the results of this query.

Thanks in Advance,

Chuck
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Hi Chuck,

1) max(invoice_date)
2) & 3) if you use column aliases (ie. sum(Successful) as SumSuccess and sum(count) as SumCount) you can then define a calculated field as [SumSuccess]/[SumCount]

Hope this helps.
 
Upvote 0
I would like to make another table with the results of this query.

For this last part, check out the Access help on "Action Queries", specifically the "Make Table Query" and/or the "Append Query".
 
Upvote 0

Forum statistics

Threads
1,223,486
Messages
6,172,570
Members
452,465
Latest member
katiea92

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