If Exits in this table use this, if not use that one?

JazzSP8

Well-known Member
Joined
Sep 30, 2005
Messages
1,233
Office Version
  1. 365
Platform
  1. Windows
Hey All

I'm treading water in Access again :-/

I'm pulling together some data from various locations, one price field in has two different versions, a "now" and a "future" both held in different Tables.

I want to be able to edit my Query so that; "If the price exists in the Future, use the Future price, otherwise use the Now price"

I found IIF but I don't think I can use that?

Any help / suggestions gratefully received.

Thanks
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Can you join the 2 tables?

If you can then you should be able to set up an appropriate expression to pull the required price.

=Nz([Table2]![FuturePrice], [Table1]![NowPrice])
 
Upvote 0
Aha! - Yes, I can do that, I saw Nz earlier when I was Googling.

Thanking you for that push in the right direction Mr. Norie Sir!
 
Upvote 0

Forum statistics

Threads
1,224,822
Messages
6,181,165
Members
453,021
Latest member
Justyna P

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