Results 1 to 4 of 4
  1. #1
    matteu1 is offline Novice
    Windows XP Access 2003
    Join Date
    Aug 2009
    Posts
    3

    Assigning values to duplicate records

    I have a query with with four fields:

    Property


    Unit
    Square Footage
    Start Date

    I've created a 5th field called End date. What I'd like to do is have the query look for duplicate unit records by property. If a duplicate record exists then assign an end date to the superceded unit's square footage. The end date would equal the start date of the new unit's square footage.

    Example:
    House, 101, 1,000, 1/1/09, 5/1/09
    House, 101, 1,200, 5/1/09, n/a

    Thanks in advance,

    Matt

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    It sounds like you want the reverse of this:

    http://www.baldyweb.com/PrevValue.htm

  3. #3
    matteu1 is offline Novice
    Windows XP Access 2003
    Join Date
    Aug 2009
    Posts
    3
    Yes I do. All I did was switched max to min, and reversed the < to >. Much thanks!

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    No problem, glad it helped.

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

Similar Threads

  1. Duplicate Values in table
    By senthilrg in forum Queries
    Replies: 3
    Last Post: 12-18-2009, 09:24 PM
  2. Replies: 1
    Last Post: 11-10-2009, 03:12 PM
  3. Delete duplicate records
    By Zukster in forum Queries
    Replies: 1
    Last Post: 08-26-2009, 03:14 AM
  4. Prevent Duplicate Values on Combination of Two Fields
    By LornaM in forum Database Design
    Replies: 8
    Last Post: 05-05-2009, 11:16 PM
  5. Assigning Values/Scorecard
    By nicholali in forum Access
    Replies: 0
    Last Post: 11-17-2008, 03:20 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