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

JazzSP8

Well-known Member
Joined
Sep 30, 2005
Messages
1,227
Office Version
  1. 2013
  2. 2010
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

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
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,214,650
Messages
6,120,734
Members
448,987
Latest member
marion_davis

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