Results 1 to 2 of 2
  1. #1
    efleming is offline Novice
    Windows 7 32bit Access 2002
    Join Date
    May 2011
    Location
    Ontario, Canada
    Posts
    11

    Query Criteria: Unique Number


    Sorry if this is a no0b question, but how do you specify that a number must be unique (i.e., it can be any number - but cannot have duplicates)? Also, is there an easy way to compile/list the data which fails to meet your criteria?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    You can use Autonumber datatype or in table design set field to not allow duplicates.

    You can do a Totals query that groups by the field in question and use Count function. Any numbers that have more than 1 count you can then search for in the original table to locate records and decide how to correct. Or you could join the Totals query to the original table (join type 'show all from original table...') and filter those records with count greater than 1 and thus select the records that have duplicate number.
    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.

Similar Threads

  1. Duplicate Query Reporting Unique Values...
    By Tomfernandez1 in forum Queries
    Replies: 5
    Last Post: 04-19-2011, 04:22 PM
  2. Replies: 0
    Last Post: 01-03-2011, 03:38 PM
  3. Auto Unique Number on every REPORT
    By imvineet in forum Access
    Replies: 3
    Last Post: 09-09-2010, 08:08 AM
  4. Replies: 24
    Last Post: 09-01-2010, 02:09 PM
  5. query that will contain all unique records
    By halcolm1 in forum Queries
    Replies: 0
    Last Post: 01-19-2007, 05:34 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