Dear All
I am trying to use the iif in a query to convert the first two characters from a field into a predefined text value, I can actually make this work , but need more then the allowed number of iifs, it seems to me that it would be easier to use an If …….. Then statement (or Case Else, but I’m more comfortable with if then), but I’m unsure about how to get this to run from the query, or even if it’s possible at all.
What I want to achieve is something along the lines of: –
If .[field1] left([field1],2) = IA Then
“This Text”
Else If .[field1] left([field1] = SY Then
“That Text”
etc
All told I have over 20 different prefixes to deal with.
So, is it possible? If so, where do I put the code, how do I make the code run from the query?
Thanks in advance
Ian