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

if then else question 2

Status
Not open for further replies.
Feb 28, 2002
26
US
I get the following message in the Crystal formula editor: "A number is required here."

This the formula causing this message.

if A = 'Other' then
B
else
C

Is it possible to conditionally display text data?

Regards,

Guy
 
yes but both B and c must be text strings...if one or the other is not then convert the number (or date) one to a text format using:

ToText(B) or ToText(C) depending on which was the number.

In general, B and C must be the same data type...ie both are either Boolean, number, string or date types

Jim

 
That was the problem. One of the fields is not text. The real issue is the datasource for the report in an excel spreadsheet. I checked to see if both fields were text fields and they were. Regardless, thanks for the assistance on this one.

Guy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top