Results 1 to 3 of 3
  1. #1
    ghiasibrahim is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2018
    Location
    Damascus
    Posts
    14

    Date subtracting

    Hi guys
    How to subtract date in the current row from date in the previous one and show the result in column. I managed to do it in Multiplying, in the attached example.
    I appreciate your Ideas and help.
    Attached Files Attached Files

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    I can't look at the sample right now, but you can get the previous value and use the DateDiff() function.

    http://allenbrowne.com/subquery-01.html#AnotherRecord
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    ghiasibrahim is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2018
    Location
    Damascus
    Posts
    14
    thank you pbaldy for your reply, but I couldn't use the information. it will be very nice from you if you could put the query into my sample when you have time.
    appreciate you help.

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

Similar Threads

  1. Replies: 3
    Last Post: 04-02-2015, 06:21 AM
  2. Subtracting Hours
    By Mark256 in forum Queries
    Replies: 4
    Last Post: 10-08-2014, 10:56 PM
  3. Subtracting a date/time field from a number to get date/time
    By Lifeseeker1019 in forum Programming
    Replies: 4
    Last Post: 03-28-2014, 12:59 PM
  4. Adding and subtracting dates from current date
    By brianmcleer in forum Access
    Replies: 1
    Last Post: 05-07-2013, 05:15 PM
  5. Subtracting two records
    By laipeka in forum Queries
    Replies: 2
    Last Post: 08-30-2012, 04:12 AM

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