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!

Week Starting from monday

Status
Not open for further replies.

SuperTime

Programmer
Dec 21, 2004
183
US

Is it possible to alter Crystal Reports, so that the weekly function treats the weekly start day as Monday rather than Sunday.
My report needs from Monday to Sunday as the week.


DatePart ("ww", {ApplicationAbandon.Timestamp}, 2)

I tried using the above formula for the group it gives an error " the result of selection formula must be a boolean."

DatePart ("ww", {ApplicationAbandon.Timestamp} , 2) =1

then i used the above formula, but that also does not work


Please advice.

Thanks
 
You are creating the formula in the record selection area--the wrong area. Go to the field explorer (or to insert->formula)->formula->new and enter the datepart formula there:

datepart("ww",{ApplicationAbandon.Timestamp}, 2)

Then you can group on the formula.

-LB
 
I now created a formula: @date

datepart("ww",{ApplicationAbandon.Timestamp}, 2)

How do I group on that formula?
 
Go to insert->group and choose {@date} from the dropdown.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top