WalkieTalkie
Technical User
I have an unbound textbox in a report that reads:
"has attended a " & [ProgrammeType]
I want to be able to get it to say "has attended an" when [ProgrammeType] begins with a vowel. I have unsuccessfully tried using the IIF function like so:
& IIf(Left([Value],1)="a" Or "e" Or "i" Or "o" Or "u","an ","a "
...but it doesn't want to look at anything after the first "a". How do I get all those "Or"s into the expression?
Miranda
"has attended a " & [ProgrammeType]
I want to be able to get it to say "has attended an" when [ProgrammeType] begins with a vowel. I have unsuccessfully tried using the IIF function like so:
& IIf(Left([Value],1)="a" Or "e" Or "i" Or "o" Or "u","an ","a "
...but it doesn't want to look at anything after the first "a". How do I get all those "Or"s into the expression?
Miranda