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

Writing formula based on a date?

Status
Not open for further replies.

Vatchunter

Technical User
Aug 21, 2004
43
US
Hello,
I am writing a PM Schedule report in Crystal 8.5, using an Access 2000 database.

I need to take a completion date from a Workorder table and project the next time this PM Workorder will come due. Example, PM W/O is completed on 4/19/2004 and will come due the next time in 90 days. How would I write the formula for the next PM Service Date?

Thanks,
 
Create a new formula.
In the formula write the following line, but modify the line with your date field:

{table.date} + 90

This will add 90 days to the date field, giving you the projection you are looking for.
Lastly, add the field to the report by dragging it from the field explorer.

~Brian
 
I know this is old and resolved, but just wanted to throw in another option:

DateAdd("d",90,{table.date})
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top