Blank in Listbox

  • Thread starter Thread starter DS
  • Start date Start date
D

DS

I have this field in a Query.....
PRICE:
CCur(IIf([CDDiscountDP]=1,[CDFinalPrice]+[CDDiscountAmount],IIf([CDDiscountDP]=2,[CDFinalPrice]-([CDFinalPrice]*[CDDiscountPercent]),IIf([CDDiscountDP]=3,"
",[CDFinalPrice]))))

Under the condition CDDiscountDP=3 I would like a blank to show up instead
of $0.00 however when I code it as above I get an error that you can't do
it. When I change it to CDDiscountDP=3 (0) it works. Any way that I can
get a blank instead of a $0.00 ?

Thanks
DS
 
I figured it out. I moved the CCur phrase inward and excluded the
CDDiscountDP=3 from the CCur part and put it at the begining of the
expression.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

SQL Rowsource 1
Line Break 9
DSum Wrong Argument 2
Query iiF Woes 2
Union Query Format 6
Format Problem 1
Not returning a value 7
Function Returns 0 3

Back
Top