Hi All,
How would I refer to the element in my field on the previous record? Say I want to multiply the value of field [factor] by the value of the field [factor] in the previous record?
there's no native order in your tables, so you would need to "find" the previous record, based on a set of criteria of your choosing, then you can open the previous record, and do the calculations...
on the previous record
Have you a non ambiguous sorting scheme ?
If an ORDER BY clause guarantees the relative position of ALL records in the resultset then you may consider a "running total"-like query.
Feel free to post the exact layout of the table(s), some input samples and expected result.
Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.