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!

Date Parameters

Status
Not open for further replies.
Mar 20, 2003
7
CA
I am a new crystal user and am really bad at formulas. :-(

I am trying to create a Date Parameter that allows the person accessing the report to select his or her own date range.

I am sure it is pretty simple, but i can not get it to work.

Any advice?
 
Create a date range type parameter, make sure you check the Range option.

In the record selection formula (Report->Edit Record Selection->Record) place something akin to the following:

{MyTable.DateField} = {?Daterangeparameter}

Adjust the names accordingly.

-k
 
Thank you very much for your reply.

My next questions is what exactly should the {?Daterangeparameter} be looking at?

My report is based on info in Track IT and is looking at all completed calls, so should i just select the date field that i want to base the report on or do i need to create a new formula?
 
{MyTable.DateField} = {?Daterangeparameter}

{mytable.datefield} is the date field in your database.

{?Daterangeparameter} is the date range parameter you created.

-k
 
Hello again, maybe i didn't explain my problem correctly. When i create a {?Daterangeparameter} and then save it, when the users open the report, they do not get prompted to select the dates needed, instead the report just opens with the dates i have put in the {?Daterangeparameter}

Thank you for being so patient.
 
Actually i have just managed to find my problem. Thank you very very much for your help.

You are the best :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top