Jumat, 17 November 2017

Re: [MS_AccessPros] Subtracting 2 dates on the same column

 

Hi Duane,


Thank you for replying. I have a table in Access with 2 columns: TransDate (col A) and Amount (col B).

For respective columns A and B, I would have rows like these:

TransDate Amount
1/1/2017 $150
1/15/2017 $75
2/13/2017 $78
3/14/2017 $130


I would like to write a query to calculate the number of days from the previous date and the cumulative value. The outcome of the query should look like this:


TransDate DaysSince Amount Cumulative
1/1/2017 $150
1/15/2017 14 $75 $225
2/13/2017 29 $78 $153
3/14/2017 29 $130 $208


Thank you for your help, Duane!

Tim




__._,_.___

Posted by: timdbui@gmail.com
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (3)

Have you tried the highest rated email app?
With 4.5 stars in iTunes, the Yahoo Mail app is the highest rated email app on the market. What are you waiting for? Now you can access all your inboxes (Gmail, Outlook, AOL and more) in one place. Never delete an email again with 1000GB of free cloud storage.


.

__,_._,___

Tidak ada komentar:

Posting Komentar