Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2010
    Location
    New Jersey
    Posts
    18

    Unanswered: Calculating a due date

    Much like all of my inquiries here, I'm sure the answer is pretty easy....I have two date fields

    1) Date of Last Calibration

    The field inbetween them is Calibration Needed in X amount of months

    I want the third field to automatically calculate the future due date based on the previos field.

    Doable?

  2. #2
    Join Date
    Dec 2010
    Posts
    31
    FutureDate = DateAdd("m", x, [DateOfLastCalibration])

  3. #3
    Join Date
    Nov 2004
    Location
    out on a limb
    Posts
    13,692
    Provided Answers: 59
    The future calibration date is derived data, so in an ideal world don't store it, unless you have to for performance or some other reason.

    There is a good reason not to, which is if someone decides to change calibratioin intervals (say a specific piece of equipment is regraded to require a more frequent calibration then storing the date makes it harder.

    the date add function can add days, months, years and so on.... well worth a look in the help system
    I'd rather be riding on the Tiger 800 or the Norton

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •