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

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
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,223,893
Messages
6,175,246
Members
452,623
Latest member
cliftonhandyman

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