Link to home
Start Free TrialLog in
Avatar of InvisibleMan
InvisibleMan

asked on

IIF BLANK TEXT BOX ISSUE

I have an ADP database that when a value is coming up blank the IIF statement does not work correctly.  For example:

Control Source
=IIF([Rate]="",0[Rate])
 The textbox is still blank.  Any idea?
Avatar of Paurths
Paurths

hi InvisibleMan,

try this:

=IIf(IsNull([rate]);0;[rate])

cheers
Ricky
ASKER CERTIFIED SOLUTION
Avatar of PsychoDazey
PsychoDazey

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
or

=IIf(IsNull([rate]) Or Trim([rate] = "");0;[rate])

-cf
Avatar of Hamed Nasr
PsychoDazey, Just put the control source property:
=Nz(Me.[Rate],0)  
:)
That is what I dis hsanr (refer to my comment above yours)?!?!?  Did you mean to refer that comment to InvisibleMan?
PsychoDazey ,
I was referring to your comment, which is now accepted answer, to remove: Me![Rate].Control Source before the equal sign. :)