Results 1 to 5 of 5
  1. #1
    mrjane is offline Novice
    Windows 10 Access 2013
    Join Date
    Nov 2015
    Posts
    2

    Automatic Due Date Calculation?

    This may be easy, but I haven't been able to find out how to do it anywhere on the internet.



    I'm looking for a way to make one of my fields auto-calculate a due date. I have a field for "RentalDate" and when I fill this is, is it possible to have the next field (DueDate) automatically enter a date that's 10 days later?

    Any help would be appreciated. Thank you.

  2. #2
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    If DueDate is always a function of another date, it should NOT be stored in a table field. Anything that can be calculated should not be stored.
    Simply perform the calculation in a query (and use that query as the Data Source of your Form/Report), or do the calculation in a calculated field right on the Form/Report.

  3. #3
    ranman256's Avatar
    ranman256 is online now VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,527
    due date :
    =DateAdd("d",10,txtRentDate)

  4. #4
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    Or since dates are stored in Access in terms of days, simply:
    Code:
    [RentDateField] + 10

  5. #5
    mrjane is offline Novice
    Windows 10 Access 2013
    Join Date
    Nov 2015
    Posts
    2
    Worked perfectly! Thanks.

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

Similar Threads

  1. Automatic calculation of table field (A2003)
    By GraeagleBill in forum Programming
    Replies: 9
    Last Post: 04-20-2013, 12:06 PM
  2. Replies: 17
    Last Post: 10-18-2012, 03:45 PM
  3. Automatic date
    By vanstuurwiel in forum Access
    Replies: 5
    Last Post: 09-14-2010, 04:51 AM
  4. Automatic Calculation in table
    By musicalogist in forum Access
    Replies: 4
    Last Post: 04-22-2010, 11:52 AM
  5. Automatic Date insertion
    By wbeau in forum Access
    Replies: 0
    Last Post: 03-10-2009, 12:51 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