Results 1 to 3 of 3
  1. #1
    jmwebster91 is offline Novice
    Windows 7 64bit Access 2016
    Join Date
    May 2016
    Posts
    13

    Default date in a table value based on another date in that same table

    Hello, I'm Joe.



    I have a database which is designed to send out automatic emails one year on from the purchase of an item to remind them to buy a service kit. As well as an email 5 years on to remind them to buy a refurbishment kit. I would like to be able to send a reminder email 10 days after each of these reminders.

    So the total time after the order is placed is 1 year and 10 days.

    This data is in a table called 'Full Data'

    Order Date (Date/Time) - Default value " =Date "

    Spares Follow Up Date (Date/Time) - Default value " =DateAdd('m',+12,Date()) "

    Refurb Follow Up Date (Date/Time) - Default value " =DateAdd('m',+60,Date()) "


    Trying to populate a field called "10DaySparesFollowUpDate"
    my best guess:

    =DateAdd('d',+10,[Spares Follow Up Date])


    Many thanks
    Joe

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    the formula for a query , then:
    DateAdd('d',375,[purchaseDate]) '1yr, 10 days
    DateAdd('d',1835,[purchaseDate]) '5yrs 10 days

  3. #3
    jmwebster91 is offline Novice
    Windows 7 64bit Access 2016
    Join Date
    May 2016
    Posts
    13
    Quote Originally Posted by ranman256 View Post
    the formula for a query , then:
    DateAdd('d',375,[purchaseDate]) '1yr, 10 days
    DateAdd('d',1835,[purchaseDate]) '5yrs 10 days
    Thank you very much, this worked wonderfully.


    Another thing, if iI want a query to find this day "=Date()" every year,

    for instance today, the query would return all values with dates;

    12/05/2016
    12/05/2017
    12/05/2018
    12/05/2019 ... and so on

    how could this be done in a query?

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

Similar Threads

  1. Replies: 1
    Last Post: 11-16-2014, 09:10 AM
  2. Replies: 7
    Last Post: 09-15-2014, 11:55 AM
  3. Replies: 3
    Last Post: 12-24-2013, 04:20 PM
  4. Replies: 10
    Last Post: 11-06-2011, 01:30 PM
  5. Replies: 1
    Last Post: 02-06-2011, 06:36 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