Results 1 to 2 of 2
  1. #1
    sergran is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Jun 2013
    Posts
    115

    Numerazione

    Hello everyone, I need your help.
    I have a series of columns, where in some specific columns are duplicate data.
    I could use that might have been identified individual duplicates and numbered differently depending on the group in which they are
    Here's an example
    The databse is formed by
    _Colonna "Brand"
    _Colonna "Model"
    _Colonna "Version"
    _Colonna "Freon"
    _Colonna "Oil"

    record 1) Audi -> A4 -> 2000 TDi -> 500 -> 300
    records 2) Audi -> A6 -> 2000 TDi -> 500 -> 300
    record 3) BMW -> Z1 -> 3000 TDi -> 450 -> 200
    record 4) BMW -> X5 -> 2500 TDI -> 350 -> 150

    The data control dupplicati must only be in column Freo and Oil


    In the example above, the result should be

    record 1) Audi -> A4 -> 2000 TDi -> 500 -> 300 ---------- -> 0001
    records 2) Audi -> A6 -> 2000 TDi -> 500 -> 300 ---------- ---> 0001
    record 3) BMW -> Z1 -> 3000 TDi -> 450 -> 200 ---------- -> 0002
    record 4) BMW -> X5 -> 2500 TDI -> 350 -> 150 ---------- -> 0003
    And 'possible to get such a thing?
    Thank you very much

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Ranking or row number is common topic in forum. Doing this in query and/or form is not easy. Review http://allenbrowne.com/ranking.html

    However, textbox in report has a RunningSum property which can be used to sequentially number records by group.

    None of these techniques will save the sequence to table.

    Automatically generating an identifier and saving into table requires code that looks up the last saved value and then increments. Review https://www.accessforums.net/forms/a...ing-23329.html
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

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