Calculated field using field from another table

mikeymay

Well-known Member
Joined
Jan 17, 2006
Messages
1,600
Office Version
  1. 365
Platform
  1. Windows
I have a table (PropertyTypes) that holds a field labelled TotalRevealM which needs to be used in another table (Properties) as part of a calculation in a field labelled TotalRevealM2

Both tables have a field labelled TypeRef which is a unique ID of each record in the PropertyTypes table.

The calculated field in the Properties table should be
(PropertyTypes.TotalReveal - 10) * 0.15) + 2

I am pretty much new to Access and I'm sure this will be simple but until you know, it's not simple!


TIA
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Use a Query to link these two tables together. Then fields from both tables are available to you in your calculation.
You can find information on "creating queries between two tables in Access" with a simple Google search.
There are many articles/tutorials/videos on the topic.
 
Upvote 0
Calculated table fields are something one should avoid most of the time (if not always).
Microsoft Access tips: Calculated Fields
Micron, is it even possible to do a calculated field at the Table level, if the fields needed in the calculation are found in two different tables?
I know you often can (but probably shouldn't) if all fields needed in the calculation are in that one table, but is it even possible if they are in multiple tables?
Never tried it myself (never wanted to, for the aforementioned reasons!)
 
Upvote 0
No, cannot calculate in a field between tables. Table field calculations are quite limited in terms of what expressions you can use. Maybe that's a good thing. I realize the OP wanted to do it across tables; I just thought I'd throw some mud on the whole idea, regardless of what fields where involved.
 
Upvote 0
Thanks for all the advice!

I will have a good look at each point and find a way that waorks.
 
Upvote 0

Forum statistics

Threads
1,215,084
Messages
6,123,029
Members
449,092
Latest member
ikke

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