Using Iif and eval in MS access

aravindkm

Board Regular
Joined
Feb 9, 2017
Messages
50
Hi All,

I tried using If and Eval function in MS Access while im getting the data in access however it is throwing a Syntax error.

My requirement is if the currency code is equal to GBP,USD,EUR,HKD the reporting currency column should have respective currency codes.

If other than GBP,USD,EUR,HKD the reporting currency column should have "OTH". While trying to implement this I used iif and eval function have had an syntax error.

The formula used is IIf(Eval([CURRENCY] In ("GBP","USD","EUR","HKD")),"AA","OTH") could anyone please let me know what's the issue with the formula I have used and also let me know what should be used.

Thanks
 
Hi Joe4,

Thanks for your response.

I have already tried joining the two tables however I require not matched lines also should be available in the query after joining the tables like in Vlookup we will not matched items as "#NA".

Like these I require the not matched items.

Thanks
 
Upvote 0

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.

Forum statistics

Threads
1,224,823
Messages
6,181,179
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