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

Empty select in formula in Crystal 9.2 1

Status
Not open for further replies.

lana123

Programmer
Aug 20, 2003
79
US
Hi,people.
To show last and first name in report(Oracle db) I'm using the formula based on my view fields:
UCASE({RPT_CLAIMANT.LAST_NAME})+
IF UCASE({RPT_CLAIMANT.FIRST_NAME})='' Then ''
Else ', '+UCASE({RPT_CLAIMANT.FIRST_NAME})

If I don't have firstname nothing shows up in the formula.
I cannot understand why it's happen.
Please,advise...
Thanks,

Lana
 
Try:

UCASE({RPT_CLAIMANT.LAST_NAME})+
(
IF isnull({RPT_CLAIMANT.FIRST_NAME}) or
trim({RPT_CLAIMANT.FIRST_NAME})= '' Then ''
Else ', '+UCASE({RPT_CLAIMANT.FIRST_NAME})
)

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top