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!

Lastfullweek

Status
Not open for further replies.

scott1971

Technical User
Apr 20, 2005
125
EU
Is there any simple way of making the lastfullweek formula look at Monday to Sunday rather than Sunday to Saturday as it currently does? I use this all the time and I'd love to know if there is an easy way around it.

I'm using Crystal-XI.
 
I think you would have to use a record selection formula like:

{table.date} in currentdate-dayofweek(currentdate, crMonday)-6 to
currendate-dayofweek(currentdate,crMonday)

-LB

 
Try:

If dayofweek(currentdate) <> 1 then
{table.date} in minimum(lastfullweek)+1 to
maximum(lastfullweek)+1
else
{table.date} in minimum(lastfullweek)-6 to
maximum(lastfullweek)-6

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top