Hello, I have the following code in a report;
=IIf([direct discount:]>0,"Direct Discount - " & [Direct Discount:] & "
" & IIf([Interline discount:]>0,"Interline Discount - " & [Interline Discount:] & "
" & IIf([Direct Minimum:]>0,"Direct Minimum - " & [Direct Minimum:] & "
" & IIf([Interline Minimum:]>0,"Interline Minimum - " & [Interline Minimum:] & "
" & IIf(IsNull([fak])," ","FAK - " & [fak])))))
It works fine if i have something in each field before the other, but i just noticed that if i don't have a discount in Direct Discount, the rest don't show up in my text box. Am i way off in my coding or am i just missing something small.
Below,If i have 44 in each discount or minimum i get; but if i'm missing direct discount i get nothing returned.
Direct Discount - 44
Interline Discount - 44
Direct Minimum - 44
Interline Minimum - 44
Thanks in advance.
=IIf([direct discount:]>0,"Direct Discount - " & [Direct Discount:] & "
" & IIf([Interline discount:]>0,"Interline Discount - " & [Interline Discount:] & "
" & IIf([Direct Minimum:]>0,"Direct Minimum - " & [Direct Minimum:] & "
" & IIf([Interline Minimum:]>0,"Interline Minimum - " & [Interline Minimum:] & "
" & IIf(IsNull([fak])," ","FAK - " & [fak])))))
It works fine if i have something in each field before the other, but i just noticed that if i don't have a discount in Direct Discount, the rest don't show up in my text box. Am i way off in my coding or am i just missing something small.
Below,If i have 44 in each discount or minimum i get; but if i'm missing direct discount i get nothing returned.
Direct Discount - 44
Interline Discount - 44
Direct Minimum - 44
Interline Minimum - 44
Thanks in advance.