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

Date Checkbox Paramater

Status
Not open for further replies.

lthomas6

MIS
Aug 22, 2007
87
US
I am using a Crystal 10 report pointing to a SQL db.

I have a report with a paramter
1..Cancelled Equity. This is a boolean checkbox parameter that is automatically set to default to false.

The selection criteria is:

({?CancelledEquity} = FALSE AND isnull{Security.CancelDate})
or {?CancelledEquity} = TRUE)

The first part before the OR is working however when selecting true, it is not. It is still pulling in records where ther canceldate is null and if it is not null.

Do I need to also put in a criteria to check if the canceldate is not null? If so, how would I alter the selection critera?



 
(
(
{?CancelledEquity} = FALSE AND
isnull({Security.CancelDate})
) or
(
{?CancelledEquity} = TRUE and
not isnull(({Security.CancelDate})
)
)

-LB

 
So if the report needed to include the cancelled equity's and also have the not cancelled equities, how would this selection critera be altered to handle that? Would this type of parameter work for this?
 
To clarify my post from above:

When user checks the checkbox to include cancalled equities, the report should pull in the cancel dates that are null as well as those that are not null.

When user uncheck the checkbox, the report should pull in only those canceldates that are NOT null.
 
What is the prompt text for the parameter? Let's say the parm is called {?IncludeCancelled}. Then the selection formula would be:

(
{?IncludeCancelled} = true or
(
{?IncludeCancelled} = false and
not isnull({Security.CancelDate})
)
)

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top