Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access97 Query to add previous records

Status
Not open for further replies.

chifu

IS-IT--Management
Apr 2, 2001
158
GB
Just could not work this one out. Hope some one could help.

I want to build a query which returns a rolling subtraction on a walue. eg.

Object. Value. Roling subtraction
Ruler 5 0
Rubber 3 2
Pen 4 -1
Ink 1 3

So the roling subtraction needs to get the value from the previou record of the query. What I can not work out is how to get a statement to point to the previous record, so it says something like.

(Value of previous record - current value).

Anyone know how to do this? Thanks.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top