We are a group of users of Blackbaud products and are not affiliated with Blackbaud. We'd love to have you join our community to help and be helped in getting the most from your Blackbaud software.
Register now to join us to get independant advice on your system, connect with 3rd party consultants to help you maximize your database and have a real alternative to the official Blackbaud website.
Is there any way to use one parameter date range on two fields.
For example: If I want my report to show any proposal with an expected date in X - Z date range OR with a deadline date in X - Z range is there any way to program it in such a way to not ask me for the same date range twice?
(
{field_date_1} in minimum( {?dateRange} ) to maximum( {?dateRange} ) or
{field_date_2} in minimum( {?dateRange} ) to maximum( {?dateRange} )
) and
<insert rest of criteria here>
__________________ ~~~~~~~~~~~~~~~~~~~
Doug Creek
RE Database Administrator
University of Alaska Foundation sndgc@email.alaska.edu
It is not recognizing the parameter field {?dateRange} Is that a canned parameter or do I need to set it up in parameters. Can you set up a parameter in Crystal and not link it to a specific field?
You'll need to set it up in the parameters... In the way I have it defined here, you would set up a date type parameter that allows ranges, no individual values.
I don't use the "Select Expert", if you go to Report --> Selection Formulas --> Record, you can actually edit the formula... Drop the formula below in it (after you create the parameter...)
__________________ ~~~~~~~~~~~~~~~~~~~
Doug Creek
RE Database Administrator
University of Alaska Foundation sndgc@email.alaska.edu
In the field explorer, you should see "Parameter Fields" Right click, create a new parameter, name it whatever, then change the {?dateRange} to the name of that parameter...
__________________ ~~~~~~~~~~~~~~~~~~~
Doug Creek
RE Database Administrator
University of Alaska Foundation sndgc@email.alaska.edu
(
{field_date_1} in minimum( {?dateRange} ) to maximum( {?dateRange} ) or
{field_date_2} in minimum( {?dateRange} ) to maximum( {?dateRange} )
) and
<insert rest of criteria here>
This can be simplified to
Code:
(
{field_date_1} in {?dateRange} or
{field_date_2} in {?dateRange}
) and
<insert rest of criteria here>
Drew
__________________ J. Drew Allen
Children's Hospital of Philadelphia
Crystal Reports and SQL Server Consultant
It is better to live your destiny imperfectly than to live an imitation of somebody else's life with perfection.