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?
Control Source
=IIF([Rate]="",0[Rate])
The textbox is still blank. Any idea?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
or
=IIf(IsNull([rate]) Or Trim([rate] = "");0;[rate])
-cf
=IIf(IsNull([rate]) Or Trim([rate] = "");0;[rate])
-cf
PsychoDazey, Just put the control source property:
=Nz(Me.[Rate],0)
:)
=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. :)
I was referring to your comment, which is now accepted answer, to remove: Me![Rate].Control Source before the equal sign. :)
try this:
=IIf(IsNull([rate]);0;[rat
cheers
Ricky