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

Date formula working on a parameter 1

Status
Not open for further replies.

AlanCrawford

Programmer
Jul 23, 2001
21
GB
Hi guys,
Quick question for you... Is it possible to calculate a date which is exactly 8 weeks before a date parameter?

I know that Crystal has various built in date range functions - but what I would like is the specific calculated date.

Thanks in advance for any help you can give me,

Alan Crawford
Sx3
 
Try:

DateAdd("ww", -8, {your_date_field})

Cheers,
- Ido

ixm7@psu.edu
 
Thanks Ido. I actually figured out a way immediately after I posted:

//Simply works out the date 8 weeks before the 'Requested From' variable.
WhilePrintingRecords;
DateVar EightWeeksBeforeRequestedFrom;
EightWeeksBeforeRequestedFrom := ({?Requested From} - 56)

... but thank you very much for replying! It's very much appreciated. :eek:)

Best Wishes,

Al.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top