SteveL13
asked on
Problem with IIf
I am having a problem with an IIf in a text box control source. What is wrong with this code?
=IIf([txtTotal PartNQtyNeeded]-[txtTotAva il])=<0, 0, [txtTotal PartNQtyNeeded]-[txtTotAva il])
--Steve
=IIf([txtTotal PartNQtyNeeded]-[txtTotAva
--Steve
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
check again what you have ...
ASKER
Here is exactly what I have... (copy and paste)
=IIf([txtTotalPartNQtyNeed ed]-[txtTo tAvail])=< 0,0,[txtTo talPartNQt yNeeded]-[ txtTotAvai l])
=IIf([txtTotalPartNQtyNeed
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Just a tip...
For syntactical issues in control sources like this, you can put the expression in the VBA editor like this:
x = IIf([txtTotal PartNQtyNeeded]-[txtTotAva il] <= 0, 0, [txtTotal PartNQtyNeeded]-[txtTotAva il])
Doing so makes it easier to track down errors (the expressions turn red if the syntax is off).
For syntactical issues in control sources like this, you can put the expression in the VBA editor like this:
x = IIf([txtTotal PartNQtyNeeded]-[txtTotAva
Doing so makes it easier to track down errors (the expressions turn red if the syntax is off).
ASKER
??