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

Suppress Text based on condition 1

Status
Not open for further replies.

Nerdhurd

Technical User
Jan 11, 2005
57
US
Howdy folks,

Im working in crystal reports 8.5 reporting through an ODBC connection to a progress database. Im trying to create a formula that will supress the email address if the rolecode does not equal UPS. I came up with this but im getting errors:

if {TableCnt.RoleCode} = "UPS"
then print "{TableCnt.EMailAddress}";

 
Right click the email address, go to Format, click the button next to Suppress, and insert this:

if {TableCnt.RoleCode} = "UPS"
then false

Naith
 
Actually you don't have to put in an if then ... you can just enter:

{TableCnt.RoleCode} = 'UPS'

When you click on Suppresion x-2 formula button. It is basically saying, Suppress When? And you can respond with just the condition.

regards,

ro

Rosemary Lieberman
rosemary-at-microflo.com, Microflo provides expert consulting on MagicTSD and Crystal Reports.

You will get answers more quickly if you read this before posting: faq149-3762
 
I think Ro means:

{TableCnt.RoleCode} <> 'UPS'

-LB
 
Dear LB,

Thank you ... for the catch...

ro

Rosemary Lieberman
rosemary-at-microflo.com, Microflo provides expert consulting on MagicTSD and Crystal Reports.

You will get answers more quickly if you read this before posting: faq149-3762
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top