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

Calculating Week

Status
Not open for further replies.

KeertanaCR

Programmer
Oct 11, 2006
68
US
Hi All,

I need to create a report, which should run weekly.
Suppose when the report runs on each Sunday, i have to get the information from Last Monday to Sunday.

I can actually put prompts for start date and end date and it will get the info for that period. But instead ,How can i get the last week dates in crystal reports.

Thanks for your help
 
EASY - how about:

{db.datefield} in [CurrentDate - 7 to CurrentDate]

Cheers
paulmarr
 

The functions LastFullWeek and Last7Days are also available for use.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top