Results 1 to 4 of 4
  1. #1
    DFeil is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Nov 2012
    Posts
    18

    Due Date Calculation


    Hello,

    What would the criteria be in a query to create a formula that will calculate the due date based off of an inspection date plus a time remaining field in years?

    Example:

    Table Field - Inspection Date: 12 May 15
    Table Field - Time Remaining: 15 in Years

    Thank you in advance

    Dave

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    Explore the DateAdd() function.

    The TimeRemaining field should be a number type and contain only a number, not text "15 in Years"


    Advise no spaces or special characters/punctuation (underscore is exception) in naming convention.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    DFeil is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Nov 2012
    Posts
    18
    Thanks, Time Remaining is in number only, I just put "in Years" to show you it was in years. I checked it out and gave it a go and came up with this;
    Expr1: DateAdd("y",[RVTimeRemaining],[InspectionDate]) it is calculating but it is calculating the days not years. Where did I go wrong??

    Dave

  4. #4
    DFeil is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Nov 2012
    Posts
    18
    Nevermind i Figured it out, should have been 4 yyyy instead of 1. Thank for your help.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Date Calculation
    By dharsh in forum Access
    Replies: 3
    Last Post: 06-26-2013, 11:19 AM
  2. Date Calculation
    By mrkaye in forum Forms
    Replies: 5
    Last Post: 11-11-2010, 01:10 AM
  3. Date Calculation
    By mrkaye in forum Forms
    Replies: 4
    Last Post: 11-10-2010, 10:42 AM
  4. Date Calculation ?
    By techexpressinc in forum Queries
    Replies: 2
    Last Post: 06-24-2009, 09:02 PM
  5. Date Calculation -- HELP!
    By klaauser in forum Forms
    Replies: 0
    Last Post: 12-22-2008, 02:14 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums