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

LastFullWeek Formula?

Status
Not open for further replies.

Tbrandes

Technical User
Aug 8, 2003
61
What would the formula look like for last full week with Monday being the first day of the week instead of the default sunday=1 LastfullWeek in Crystal 8.5. I am wanting to setup a report that runs the lastfullweek using Monday thru Sunday. The default for LastFullWeek in Crystal is Sun thru Sat.

 
Try:

if dayofweek(currentdate) = 1
{table.date} in minimum(lastfullweek)-6 to maximum(lastfullweek)-6
else
{table.date} in minimum(lastfullweek)+1 to maximum(lastfullweek)+1

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top