Results 1 to 2 of 2
  1. #1
    shenberry is offline Novice
    Windows 7 Access 2007
    Join Date
    Oct 2010
    Posts
    4

    Don't count duplicates

    okay I set up a query that just gave me the max per teacher, but the max or not accurate, because it contains duplicates. If the same name appears I don't want the counter to increase.

    So Count of Students: Count(*)
    Expression

    Yields 4 instead of 1
    first name last name teaher
    xyz bah teach


    xyz bah teach
    xyz bah teach
    xyz bah teach

    but atleast I access converted that data into a number. how can I convert a query to not pick up duplicates? So that teach will equal 1 instead of 4.

    Thanks.

  2. #2
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    take a look at Allen Browne's function: http://allenbrowne.com/ser-66.html

    it does just that.

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

Similar Threads

  1. duplicates
    By Roberta in forum Queries
    Replies: 5
    Last Post: 09-10-2010, 07:31 PM
  2. Duplicates in Query
    By Dega in forum Queries
    Replies: 1
    Last Post: 05-02-2010, 05:09 PM
  3. How to remove duplicates
    By TonyBender in forum Access
    Replies: 0
    Last Post: 10-21-2009, 10:27 PM
  4. Deleting Duplicates
    By TundraMonkey in forum Queries
    Replies: 4
    Last Post: 09-08-2009, 07:13 AM
  5. Pulling out duplicates
    By FREEEEEEDOM in forum Access
    Replies: 1
    Last Post: 04-21-2009, 10:37 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