Topic: Manipulate Date Fields
Hi all,
Moving right along with my project, I need to manipulate some Dates. I've attached a sample PDF file showing the tables that I'm working with.
Here's what I want to do:
- When I create a new Service record, I want to :
- Replace the LastSvcDate with SvcDate (the Date of this new Service)
- Then I want to change the NextSvcDate to be the NEW LastSvcDate PLUS the svcInterval from tbl_Svc_Interval.
.
Then eventually I'll create some reports showing the Equipment that needs to be serviced. And I will use the NextSvcDate to show what services need to be performed.
.
I found a reference to Inc(mydate, +14) which looks like it might be used to increase a date by a number of days.
.
Also, in my Svc Interval table the numbers are days, which I'm thinking might be used to add to NextSvcDate. I'm not sure how to go forward from here.
.
Any guidance to point me in the right direction will be appreciated, as always.
Thanks, Frank