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

CR10 Parameter Question

Status
Not open for further replies.

Timmkatt

IS-IT--Management
Sep 28, 2006
71
US
Using CR 10
Creating a report for our CFO and she would like to be able to run it by either of two parameter values "Run Date" OR "Paid Date". Is there a way to create the parameters so that she can choose which way she wants to run the report without having to create two reports? Thank you in advance
 
Hi Timmkatt

Assuming there the report would have a date parameter (lets call it {?DATE}) and a date "type" parameter {?TYPE}, create a selection formula like this:
(
(
{?TYPE} = 'Run Date' and
{table.run_date} = {?DATE}
)
or
(
{?TYPE} = 'Paid Date' and
{table.paid_date} = {?DATE}
)
)

where {table.run_date} and {table.paid_date} are replaced by your actual names from your database, and the parameter {?TYPE} is set with options of 'Run Date' and 'Paid Date'


Cheers
Pete
 
Works Great! One more question can I make the date parameters a range for each Type? Thanks again in advance!
 
Absolutely. Changing the date parameter to a range will not require a change to the record selection.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top