Results 1 to 3 of 3

how to subtract date 7 days from current date in access

  1. #1
    Niko is offline Advanced Beginner
    Windows 7 64bit Access 2013 64bit
    Join Date
    Oct 2017
    Posts
    47

    how to subtract date 7 days from current date in access

    Hi guys, I understand that i can do that by using DATEADD function, but i am thinking if there is other way out?

    Below is my report, I would like to have both the delivery date to show 7 days in advance.

    Click image for larger version. 

Name:	delivery table.png 
Views:	10 
Size:	10.2 KB 
ID:	30769

  2. #2
    ssanfu is offline Master of Nothing
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    8,477
    I would use
    Code:
    DateAdd("d", -7, Date)
    but you could use
    Code:
    Date() - 7
    HTH
    -----
    Steve
    --------------------------------
    "Veni, Vidi, Velcro"
    (I came; I saw; I stuck around.)

  3. #3
    Niko is offline Advanced Beginner
    Windows 7 64bit Access 2013 64bit
    Join Date
    Oct 2017
    Posts
    47
    Quote Originally Posted by ssanfu View Post
    I would use
    Code:
    DateAdd("d", -7, Date)
    but you could use
    Code:
    Date() - 7
    I try and it work! thanks

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

Similar Threads

  1. Add or Subtract Business Days from a Given Date
    By orange in forum Code Repository
    Replies: 2
    Last Post: 05-15-2017, 12:45 PM
  2. Replies: 9
    Last Post: 03-15-2016, 11:46 AM
  3. Replies: 1
    Last Post: 05-22-2014, 06:32 AM
  4. Replies: 4
    Last Post: 11-10-2011, 03:16 PM
  5. Replies: 9
    Last Post: 03-19-2010, 10:37 AM

Tags for this Thread

Posting Permissions

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