Hello forum,
I'm attempting to write a query that will return a value based on letters parsed out from a unique identifier. So, if the identifier contains the letters xr, then return the value X-Ray or if the identifier contains the letters mr, then return the value MRI, or if the identifier contains the letters ir, then return the value Interventional Radiology, and so on. I know this will work because I did it years ago, I just can't remember the syntax.
UNIT: IIf([CleanStudyMoves].[Identifier] Like "*XR*",'X-Ray') Or IIf([CleanStudyMoves].[Identifier] Like "*IR*",'Interventional Radiology')
It returns a value of -1 when I run it. Any help is appreciated.