Results 1 to 2 of 2

Thread: Random Selection of a duplicate

  1. #1
    Join Date
    Apr 2009
    Posts
    12

    Random Selection of a duplicate

    I am trying to select ONE instance of any duplicates in my table. EG: I have a table with various information for duplicate serial numbers. (Serial Number, description, date, ID, Amount)

    I am totaling up the, "Amount", fields for each serial number and i want to display the total in one line relating to the serial number. However, i want information to populate the "Description", "Date", and "ID" fields also. The problem is that there is differing info in each of the duplications in the first place.

    For the totalled up serial number record i dont care which set of information populates the fields... So what I am asking is..... is there a way of selecting a random instance of the duplicates to take that info from the irrelevant fields and popluate a single totalled up record.

    Hope that is somewhat clear!!

    Thanks for any help!!

  2. #2
    Join Date
    Mar 2006
    Location
    Oklahoma City, OK
    Posts
    184
    This may help:

    Subquery basics
    Boyd Trimmell aka HiTech Coach
    Microsoft MVP - Access Expert
    [SIGPIC][/SIGPIC]
    Office Programming 25+ years as a Software Developer specializing in:
    Business Process Management
    Accounting/Inventory Control
    Customer Relations Management (CRM)
    Electronic Data Interchange (EDI)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •