Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calculated Fields

Status
Not open for further replies.

TomPerkowski

Programmer
Jan 18, 2001
2
US
I am trying to revise a report that requires an IIF() in a calculated field. (Pdox4.5)
(sum([extension],group) * (1 - [Orderhdr->discount])) +
iif([show->TaxServChrg] = "Y",[show->ServChrg],0) generates a syntax error. In testing, I changed the [show->ServChrg] to 1 and I receive no error and 1 is added. If I delete the IIF and just add [show->ServChrg], that gets added. Where is the syntax error coming from?
TIA,
Tom

 
Make sure [show->ServChrg] is numeric.

Just a thought,
Rosalie Dieteman
 
Thought of that and yes, it is a numeric field. One of my tests was to substitute the numeric value 1 for show->servchrg. That works fine; but it doesn't help explain the syntax error.

Thanks,
Tom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top