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

Need help creating creating formula for dtae range...

Status
Not open for further replies.

mattner

Technical User
Oct 16, 2003
13
US
I have to put some reports on Crystal Enterprise.

The first will be scheduled to run weekly on Monday morning to show all activity for the previoues week (Sunday to Saturday).

The second will be similar, except it will be scheduled to run on the first day of the month, showing all the activity for the previous month.

What kind of formulas can I put in the selection criteria to accomplish this?
 
{table.activitydate} in LastFullWeek

{table.activitydate} in LastFullMonth

Hope this helps:)
 
Worked beautifully.

Now another silly question: How do I relect what date range the report is showing in the report header?

 
Hi !
Here is one exampel how you can show it:

'Period: ' + ToText(minimum(LastFullWeek)) + ' -- ' + ToText(maximum(LastFullWeek))

And for the month range just switch LastFullWeek with LastFullMonth.

/Goran
 
Thanks so much. I learned something else today!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top