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

If Number blank display text field else number 1

Status
Not open for further replies.

Pete271

Instructor
Feb 16, 2005
61
GB
Hi

I need a formula which uses to tables, the problem I'm having is that the tables are of different data types.

If numeric.table equals 0.00 then text.table
else numeric.table

I'm sure this is straight forward but I just can't crack it.

Many thanks
Pete
 
Code:
If numeric.table equals 0.00 then text.table
else ToText(numeric.table)

ToText can also control decimal places and do fancy formatting for dates. Worth looking up on [Help].

It helps to give your Crystal version - 8, 8.5, 9, 10, 11 or whatever. Methods sometimes change between versions, and higher versions have extra options.

[yinyang] Madawc Williams (East Anglia, UK). Using Windows XP & Crystal 10 [yinyang]
 
excellent! it was the brackets around numeric.table that I was missing.

thanks again
Pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top