We help IT Professionals succeed at work.
Get Started

Calculate a forward date from a given period

MGardner
MGardner asked
on
562 Views
Last Modified: 2013-11-28
I have a form with some machine service data on it that contains a couple of sub forms:-
a) tbl_Machinery_ServiceInterval with a couple of fields  LSperiod (Long Service Period) and SSperiod (Short Service Period) both showing a number representing a set monthly period for servicing.
b) SubServiceDetails1 with a couple of fields ServiceDate (Date last serviced) and ServiceType ( a combo box that shows if the entry is a Short Servic of a long service relating to the date.

I am trying to find a solution to devising a query that will show the next service date and the type of service is required?

I am assuming that if the short service period is 6 months and the long service period is 12 months and the last date was say 12/04/07 then there is only realy a need to calulate the forward date of the shortest service period but will need to determine if it is due a long service or a short service.

Any ideas how this can be acomplished??
Comment
Watch Question
CERTIFIED EXPERT
Most Valuable Expert 2015
Commented:
This problem has been solved!
Unlock 2 Answers and 42 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE