RE: Subtract fields accross records



If you want to retreve the state of account on a previous date you will need
a table to store the "sales".
ID
Date
Linking field (to item table)
Number


If you just want to reduce the amount of items held in a certain field use
an afterupdate of an unbound field on the form.


--
Wayne
Manchester, England.



"Hold the Onions" wrote:

Using Access 2003, if you have a one table database,

Count Date Item Amount
1/22/08 Oranges 2
1/22/08 Apples 5
1/22/08 Pears 3
1/23/08 Oranges 4
1/23/08 Apples 8
1/23/08 Pears 6

How do you calculate the change in each item from the prior date as follows,

Count Date Item Amount Change
1/22/08 Oranges 2
1/22/08 Apples 5
1/22/08 Pears 3
1/23/08 Oranges 4 2
1/23/08 Apples 8 3
1/23/08 Pears 6 3

I am trying to use dlookup to pull the amount from the prior date, but it
does not seem to work within the same table. I have found solutions to other
questions where it seems to address this, but they are more complicated than
I can understand. Thanks.
.



Relevant Pages

  • Re: they are catering following the castle now, wont amend woodlands later
    ... Tell Kareem it's concerned manipulating along with a amount. ... It's very prior, I'll crush ... para plays worth their trader. ... Hussein signals the ...
    (sci.crypt)
  • Re: Borg suggestion for APW
    ... store ... ... risk and he should do something differently to collect those *Heal* pots. ... Another thing to record, if possible, is the amount of time he spends ... at dl1 either scumming for!speed or waiting for stores to restock. ...
    (rec.games.roguelike.angband)
  • Re: how get calculated amount from form to underlaying table
    ... store the exchange rate information, including the date it was in effect. ... You could then use this to redo the calculation when necessary. ... > the underlaying table both the original amount and currency and the amount ... > Foreign currency amount entered by way of text box - no problems. ...
    (microsoft.public.access.forms)
  • Re: Calculating Totals in a Report
    ... Duane Hookom ... and amount of time fields. ... >> suggest any fields that store the amount of time for each task. ... >>>>> What I would like to do is create daily and weekly reports. ...
    (microsoft.public.access.reports)
  • Re: [Hobby] Helping to open a gaming store
    ... earn $60K a year with a game store and that is utter horse shit. ... Yeah $600 a day seems like a lot of money for a small store, ... store is well run it is a reasonable amount to expect after the first few ... Of the Reorder Portential items consider the amount of time taken to sell ...
    (rec.games.miniatures.warhammer)