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

Text in a numeric field 1

Status
Not open for further replies.

AkronBoy

IS-IT--Management
May 8, 2001
17
US
How do I put "TBD" into a numeric field when the value is 0.
Example of report fields would look like:
8
5
TBD
6
 
Crystal won't allow different types of results (string, number, boolean, date, etc) for one field.

If you don't want to use the numbers in a calculation you can use:

if {your#field}= 0 then "TBD" else
totext({your#field},0,"")

Or, if you want to be able to use the numbers you can create two fields placed on top of each other. Problems will occur if you use most of the summary operations other than sum and maximum. Anything that uses a count of the items to calculate, such as average, will give you bad results.

For the number field, conditionally suppress it using:
{your#field}=0

Fot the TBD, create a string field with "TBD" in it. Then conditionally suppress it using:
{your#field}<>0





Mike
If you're not part of the solution, you're part of the precipitate.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top