In a query

  • Thread starter Thread starter Mike
  • Start date Start date
M

Mike

In a query how can I get the previous record value of a field and compare it
to the current record value of the field? I want to try and calc the
difference of a field value from the previous record to the current record
and show the change in value of the field.


Thank you in advance for any help,
Mike
 
In a query how can I get the previous record value of a field and compare it
to the current record value of the field? I want to try and calc the
difference of a field value from the previous record to the current record
and show the change in value of the field.


Thank you in advance for any help,
Mike

A "Self Join" query, or a DLookUp, can help here. The details vary
depending on what *YOU* consider to be "the previous record" - tables
have no order.

Could you describe the nature of the data, perhaps with the SQL of
your query?

John W. Vinson[MVP]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top