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!

Formula to display item

Status
Not open for further replies.

sondev

IS-IT--Management
Jan 7, 2005
22
I cannot figure out why this doesnt work!

I have to display the item {?StandardTravel} to show the data only if the BA_TT_CHARGE = "STD". Otherwise I do not need the data to be displayed. I have tried many variations of this in the select expert. None seem to work.

(
if {BILLING_ARRANGEMENTS.BA_TT_CHARGE} <> "STD" then
{?StandardTravel} = ""
else
{BILLING_ARRANGEMENTS.BA_TT_CHARGE} = {?StandardTravel}
)
 
Where are you using this formula?

{?StandardTravel} isn't an item, it's a parameter, the whole posting needs to be reread and rewritten to make sense, why would you show a parameter if a database field is a certain value?

And please at least post your version of Crystal, to be thorough you should post:

Crystal version
database/connectivity used
example data
expected output

If you're trying to limit the rows in the report to what was entered into the parameter, try setting a default value for the parameter {?StandardTravel} to "All", and then use:

(
if {?StandardTravel} <> "All" then
{BILLING_ARRANGEMENTS.BA_TT_CHARGE} = {?StandardTravel}
else
if {?StandardTravel} = "All" then
true
)

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top