PC Review


Reply
Thread Tools Rate Thread

Cumulative values - deducting the previous value

 
 
Per
Guest
Posts: n/a
 
      26th Aug 2010
I have a problem regarding financial data, the data is cumulative in
each year ie. the second quarter data is the sum of quarter 1 and 2,
the third quarter is the sum of quarter 2 and 3 and so on. I have so
far used dlookup for each field in order to deduct the previous
quarters value however it is not a very flexible approach and it it
quite tedious to make the same changes to all fields. Is there a
faster and better way?

Thanks
 
Reply With Quote
 
 
 
 
John W. Vinson
Guest
Posts: n/a
 
      26th Aug 2010
On Thu, 26 Aug 2010 07:02:13 -0700 (PDT), Per <(E-Mail Removed)>
wrote:

>I have a problem regarding financial data, the data is cumulative in
>each year ie. the second quarter data is the sum of quarter 1 and 2,
>the third quarter is the sum of quarter 2 and 3 and so on. I have so
>far used dlookup for each field in order to deduct the previous
>quarters value however it is not a very flexible approach and it it
>quite tedious to make the same changes to all fields. Is there a
>faster and better way?
>
>Thanks


Yes. Don't store the derived data AT ALL; instead use a Totals query or DSum()
to sum up the actual values over a span of time.
--

John W. Vinson [MVP]
Microsoft's replacements for these newsgroups:
http://social.msdn.microsoft.com/For...-US/accessdev/
http://social.answers.microsoft.com/.../en-US/addbuz/
and see also http://www.utteraccess.com
 
Reply With Quote
 
Per
Guest
Posts: n/a
 
      7th Sep 2010
On Aug 26, 5:57*pm, John W. Vinson
<jvinson@STOP_SPAM.WysardOfInfo.com> wrote:
> On Thu, 26 Aug 2010 07:02:13 -0700 (PDT), Per <per.alexanders...@gmail.com>
> wrote:
>
> >I have a problem regarding financial data, the data is cumulative in
> >each year ie. the second quarter data is the sum of quarter 1 and 2,
> >the third quarter is the sum of quarter 2 and 3 and so on. I have so
> >far used dlookup for each field in order to deduct the previous
> >quarters value however it is not a very flexible approach and it it
> >quite tedious to make the same changes to all fields. Is there a
> >faster and better way?

>
> >Thanks

>
> Yes. Don't store the derived data AT ALL; instead use a Totals query or DSum()
> to sum up the actual values over a span of time.
> --
>
> * * * * * * *John W. Vinson [MVP]
> *Microsoft's replacements for these newsgroups:
> *http://social.msdn.microsoft.com/For...-US/accessdev/
> *http://social.answers.microsoft.com/.../en-US/addbuz/
> *and see alsohttp://www.utteraccess.com


Thank you!

Per

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
deducting same amount from cells containing various values Paul Rush Microsoft Excel Misc 3 15th Aug 2006 05:35 PM
RE: Deducting values that meet certain criteria or requirements =?Utf-8?B?dmFuX3NsYW56YXI=?= Microsoft Access 5 9th Aug 2005 01:14 AM
deducting the previous month from the current month =?Utf-8?B?Y2xpdmUgamVua2lucw==?= Microsoft Access Getting Started 8 22nd Dec 2004 12:04 AM
Cumulative values Jan Microsoft Access Forms 4 17th May 2004 01:50 PM
Cumulative values Jawad Imtiaz Microsoft Access Forms 0 15th Sep 2003 07:17 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:59 AM.