Results 1 to 2 of 2
  1. #1
    Risto85 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2014
    Posts
    13

    Compare each record with previous


    Hi,

    Is it possible to add a field into query where it checks specific field in each record with previous record? In case they are same then 0 should be displayed, if different then 1 should be displayed.

  2. #2
    NTC is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2009
    Posts
    2,392
    yes but it is an advanced design. in a database there is no such thing as 'previous' inherently there must be a field which is sequential and then one can join a table on itself - modifying the join with manual sql to be:
    table.ID=table.ID-1

    this will result in record set where those 2 rows now have fields all in the same row - and so you can then do calculated fields.

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

Similar Threads

  1. Replies: 4
    Last Post: 05-14-2014, 10:03 PM
  2. Replies: 2
    Last Post: 03-05-2014, 05:37 PM
  3. Replies: 8
    Last Post: 07-06-2013, 05:13 PM
  4. Replies: 5
    Last Post: 06-16-2013, 05:25 PM
  5. Replies: 3
    Last Post: 11-23-2011, 12:25 AM

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