Home
Forums
New posts
Search forums
Articles
Latest reviews
Search resources
Members
Current visitors
Newsgroups
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Home
Forums
Newsgroups
Microsoft Access
Microsoft Access Queries
Running sum that restarts on each group
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Michel Walsh, post: 11437296"] The GROUP and the ON clauses should describe the unique ordering sequence, without dup. In fact, you should be able to describe the sequence, exactly, just by its data (not by its 'position' in the table) to be able to get a basic solution based on SQL. Note that I assumed oderDate was a date_time field (not a string), so it may be possible to have a day (in addition to a year and a month), or even a time in it, and with that such precision, {team, orderDate} can be a valid primary key candidate (or at least, we could define a UNIQUE constraint on it). ONCE the running sum is computed, you can then FORMAT that full date_time value to only show the year and the month, but do it only AFTER having computed the running sum. Is that possible, in your case? Vanderghast, Access MVP [/QUOTE]
Verification
Post reply
Home
Forums
Newsgroups
Microsoft Access
Microsoft Access Queries
Running sum that restarts on each group
Top