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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing N/A on report

Status
Not open for further replies.

twes3

Programmer
Jun 1, 2004
16
US
Hi,

I am using Crystal Reports 10.
I am trying to display 'N/A' on a formula field. Here is my formula:

If
{v_test.exception_flag} = 'N' then {v_test.inv_onhand_qty}

else

'N/A'

I keep getting an error message that 'NA' is not numeric. Any suggestions???
 
Hi,
The results of an IF test must be of the same type, so convert your {v_test.inv_onhand_qty} field using the ToText function
Code:
If
{v_test.exception_flag} = 'N' then ToText({v_test.inv_onhand_qty})

else

'N/A'





[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top