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!

Defining Beginning of week

Status
Not open for further replies.

strom99

MIS
Nov 28, 2000
126
US
How would I define the weeks in my report as M-F. I am using a BILL_RUN_DATE and have it grouped by week, but need it to group M-F.

Thanks

 
They can be ignored since all of the BILL_RUN_DATES fall between Monday's & Friday's.
 
Create a formula field called WeekDay:

DayOfWeek({YourDateField})


Now, in the select expert, select only weekdays by using the rule:

{@weekday} is between 2 and 6

This will only include weekdays in the report. And, when you group weekly, you will get M-F. Now the group name will still print the Sunday. If you don't want it to print Sundays as the Group Name you can delete the group name field, and put a copy of your date field on the group header in it's place. This will print the first date of each week group as a header. Ken Hamady
Crystal Reports Training/Consulting and a
Quick Reference Guide to VB/Crystal (including ADO)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top