View Full Version : IIf Help!


scoobyuk09
05-27-2009, 06:17 AM
Hi there,
I'm new here but have a rather annoying problem with the IIf command.

Can anyone spot what is wrong with this IIf command : =IIf([DrvMSAHistoric]="True","A","")

DrvMSAHistoric is in the Field List, yet when I run the report, it returns back the black space rather than the A. :(

Thank you in advance,

Andy

rainman89
05-27-2009, 06:21 AM
"true" is a string

try

=IIf([DrvMSAHistoric]=True,"A","")

namliam
05-27-2009, 06:32 AM
Actually if DrvMASHistoric is a true/false field you dont need to use =...

=IIf([DrvMSAHistoric],"A","")

Will do...

scoobyuk09
05-28-2009, 01:57 AM
Namliam,
You are a total superstar!! I've been pulling my hair out for days over this and you solved it for me in seconds! Thank you so so much!!!!!!
:D:D:D

namliam
05-28-2009, 02:10 AM
Ray had it first though! I just added a little nugget of wisdom to it...
Kudo's go to Ray :)

rainman89
05-28-2009, 03:36 AM
appreciate it

scoobyuk09
05-28-2009, 04:42 AM
Yeah a big big thanks to you too Ray :D