Access 2013 Nested IIF Update Query Help

Mac1206

Board Regular
Joined
Jun 3, 2016
Messages
184
I have 2 Tables with a one-to-one join. (A)Price_Tbl and (B)Freight_Tbl which I need to update (A)Tbl.Cost_Fld....
IIF (A)Price_Tbl.Cond_Fld = "Truck", "Not Assigned", "Truck with Tarp"---pull the rate from (B)Freight_Tbl.Rate_40,
IIF (A)Price_Tbl.Cond_Fld = "Train", "Railway", "Flat Car"---pull the rate from (B)Freight_Tb.Rate_RR
IIF (A)Price_Tbl.Cond_Fld = "Multimodal"---pull the rate from (B)Freight_Tb.Rate_MM
Then multiply everything 20

Thanks in advance for your possible help....
 
Yes, you can. But you said you wanted to use macros so a VBA function may not be what you are looking for.

Edit: What I mean is, that people who use macros (mainly) generally do not want to involve VBA in their applications. Otherwise, they'd just use vba and forget the macros. VBA can always do the same, and more, than the macros, but the security context is different so they are not apples to apples.
Roger that, thanks...
 
Upvote 0

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.

Forum statistics

Threads
1,221,704
Messages
6,161,390
Members
451,701
Latest member
ckrings

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