IIF Statement

G

Guest

Hi,

I am trying to write an IIF statement. I want to check the "Type" and
"Fund" fields for specific data and return a "Platform". If the Type equals
"X" and the Fund begins with 2 through 5, I want to have the Platform field
return "P". If the Type equals "X" and the Fund begins with a 7, I want to
have the Platform field return "U". If neither are true, I want the Platform
to return "None".

Any help will be greatly appreciated.
 
K

Ken Snell \(MVP\)

Perhaps

Platform: IIf([Type]="X", IIf([Fund] Like "[2-5]*", "P", IIf([Fund] Like
"7*", "U", "None")), "None")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Advanced crosstab Query 3
iif, or, else? 3
IIF statement problem 2
Calculations 2
help with nested iif statement 1
IIf Statement Error 3
Access IIF and Instr function 1
Convert text to number in IIF statement 4

Top