Results 1 to 3 of 3
  1. #1
    schwabe is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Jan 2012
    Location
    San Francisco Bay Area
    Posts
    50

    How do I avoid multiple entries

    Hello all,

    I'm working on a problem where I'd like to narrow the list of customers down by choosing wether they have a project running or not. I would like to use the output data later as source of a combo box.

    The data structure consists of two tables:

    tabOEM with fields
    IDOEM, txtOEMName



    and
    tabProject with fields
    IDProject, txtProjectName, lnkOEM, logRunning

    Note, one customer might have several project running.
    See also the attached database.

    What I'd like to set up now is a query which gives a list of all the customers which have a program running but without dublicates. The query I have attached still shows dublicates. I've tried all three versions of the joint but that's not helping.

    Thanks,
    Benjamin

  2. #2
    alansidman's Avatar
    alansidman is offline Indifferent
    Windows 7 32bit Access 2007
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,536
    Change your query to add a GroupBy.

    Code:
    SELECT tabOEM.IDOEM, tabOEM.txtOEMName, tabProject.lnkOEM, tabProject.logRunning
    FROM tabOEM INNER JOIN tabProject ON tabOEM.IDOEM = tabProject.lnkOEM
    GROUP BY tabOEM.IDOEM, tabOEM.txtOEMName, tabProject.lnkOEM, tabProject.logRunning
    HAVING (((tabProject.logRunning)=True));

  3. #3
    schwabe is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Jan 2012
    Location
    San Francisco Bay Area
    Posts
    50
    Exactly what I was looking for. Thanks a lot!

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

Similar Threads

  1. Multiple Entries
    By alyon in forum Access
    Replies: 2
    Last Post: 05-15-2012, 07:45 AM
  2. Replies: 8
    Last Post: 01-29-2012, 12:50 PM
  3. Field with multiple entries....?
    By norlo in forum Database Design
    Replies: 1
    Last Post: 05-12-2011, 12:04 PM
  4. Multiple entries
    By danelliott in forum Access
    Replies: 3
    Last Post: 11-08-2010, 08:08 AM
  5. Multiple entries
    By Ziggy-R in forum Access
    Replies: 11
    Last Post: 10-03-2010, 07:42 PM

Tags for this Thread

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