Results 1 to 4 of 4
  1. #1
    mcumm02 is offline Novice
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2013
    Posts
    2

    Calculating difference between date fields in multiple records

    Hello,



    I am looking for help in making a query to return the number of days that have elapsed from payment transaction to payment transaction in a given account. So, for example, if one account has 10 payment transactions, I would like to know how many days elapsed between payments 1 and 2, 2 and 3, 3 and 4, etc. This calculation would be repeated for all payment transactions in a given account, and repeated for subsequent accounts in the table.

    The table has a number of fields, but I believe that the most relevant ones are:

    AccountNumber
    TransactionDate
    TransactionType (please note that there are a number of transaction types in the table, but I only want to consider transactions where this type = "Payment")

    Please also note that this is not my table, and it does not currently have a primary key. I could add one, though, if that would be helpful, but could use a hand in figuring out how to do that.

    Thank you in advance. Any help is very much appreciated.

    Best,

    Michael

  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
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    mcumm02 is offline Novice
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2013
    Posts
    2
    Thanks! I'll give that a shot!

    - Michael

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    No problem, and welcome to the site by the way!
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 1
    Last Post: 02-12-2013, 03:48 AM
  2. Replies: 12
    Last Post: 05-07-2012, 12:41 PM
  3. Date Range Report with Multiple Date Fields
    By StevenCV in forum Reports
    Replies: 13
    Last Post: 02-29-2012, 08:29 AM
  4. Replies: 10
    Last Post: 12-27-2011, 01:20 PM
  5. Replies: 1
    Last Post: 12-14-2011, 05:35 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