Results 1 to 2 of 2
  1. #1
    KenM is offline Novice
    Windows XP Access 2007
    Join Date
    Nov 2009
    Posts
    1

    Simple question

    Hi, How do I calculate the difference between the last value in a column and the previous value?

  2. #2
    NTC is offline VIP
    Windows Vista Access 2007
    Join Date
    Nov 2009
    Posts
    2,392
    not so simple.

    database tables are for storing data...not performing excel style calcs...

    there is no such thing as "last" and "previous" in a database table - - they are all just records in a table. Assuming you have a sequencing field then the "previous" record could be determined as current field - 1

    maybe easier to do this in the form when data is originally put in

    can be done via an advanced sql query that joins the same table on itself - somewhat beyond this forum

    can be done via a report - isolate the two records into a query and make a report on them

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Simple question?
    By roads.zx in forum Access
    Replies: 0
    Last Post: 10-15-2009, 04:56 PM
  2. Simple combo box question
    By laqa in forum Queries
    Replies: 9
    Last Post: 08-03-2009, 08:32 AM
  3. Very simple question!
    By fiddley in forum Programming
    Replies: 2
    Last Post: 04-28-2009, 02:16 AM
  4. Simple but hard question
    By andymok in forum Reports
    Replies: 1
    Last Post: 09-20-2007, 09:19 AM
  5. Should be simple Query Question
    By brj1 in forum Queries
    Replies: 2
    Last Post: 03-04-2006, 01:11 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums