D
DS
I can't seem to break this into two lines...also is there a better, or
shorter way to code this?
Thanks
DS
Me.TxtNone = Round(IIf(CDTaxCodeID = 2,
Nz(DSum("(CDQuantity*CDFinalPrice)/(1+CDTaxRate)", "tblCheckDetailsTMP",
"CDCheckID = " & Forms!Form2!TxtCheckID & " AND CDDiscountDP = 0 AND
CDTaxCodeID = 2"), 0), _
Nz(DSum("CDQuantity*CDFinalPrice", "tblCheckDetailsTMP", "CDCheckID = " &
Forms!Form2!TxtCheckID & " AND CDDiscountDP = 0 AND CDTaxCodeID <>2"), 0),
1))
shorter way to code this?
Thanks
DS
Me.TxtNone = Round(IIf(CDTaxCodeID = 2,
Nz(DSum("(CDQuantity*CDFinalPrice)/(1+CDTaxRate)", "tblCheckDetailsTMP",
"CDCheckID = " & Forms!Form2!TxtCheckID & " AND CDDiscountDP = 0 AND
CDTaxCodeID = 2"), 0), _
Nz(DSum("CDQuantity*CDFinalPrice", "tblCheckDetailsTMP", "CDCheckID = " &
Forms!Form2!TxtCheckID & " AND CDDiscountDP = 0 AND CDTaxCodeID <>2"), 0),
1))