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!

Convert Y & N to Yes and No 1

Status
Not open for further replies.

fnpuff

IS-IT--Management
Mar 22, 2006
9
US
I am new to Crystal (Ver XI) and this is probably a simple question (sorry.)

Pulling data from SQL 05.
Table "Program_dates" field "Confirmed" currently shows "Y" & "N" I need to view it as "Yes" or "No" I thought I could use a Boolean but I’m having no luck. Thanks in advance for the help.
 
You could just create a formula
@YN
SELECT UpperCase( {Program_dates.Confirmed} )
CASE "Y" : "Yes"
CASE "N" : "No"
Default : "Unknown"

Place this formula on the report in place of the {Program_dates.Confirmed} field.


Bob Suruncle
 
Try:

if isnull({table.field})
or
trim({table.field}) = "" then
"N/A"
else if {table.date} = "Y" then
"Yes"
else if {table.date} = "N" then
"Yes"

This is a guess because the most critical part is what data type is it? You can right click it and select browse data, which will tell you what Crystal sees it as.

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top