Results 1 to 5 of 5
  1. #1
    mlmelendez is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2014
    Posts
    3

    Find duplicates in three differenct tables

    Hello.
    I am new to this forum...

    I am familiar with Excel but not too familiar with Access...


    I am getting acquainted with Access and have the following question.

    I have three different tables:
    -one has all students with every class they have taken (failed or passed
    -another has all students with every class that they are currently taking
    -and another has all the students with every class that they will take next year

    I want to find duplicates of classes students have passed (has credit attached) and/or classes they are taking or will take.


    students have multiple rows in each table (one for every class...)
    I have created a separate table, I don't know if it is needed, but it is the alpha of all students with their unique student number

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,644
    You want to know if student/class taken is also in the other 2 tables? I expect this will involve 2 queries.

    1. Find records where Taken = Current

    2. Find records where Taken = Future

    If you want to know if there are student/class duplicates within same table, that is another issue.
    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.

  3. #3
    mlmelendez is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2014
    Posts
    3
    June7,
    Thanks you so much for your quick response.
    Yes, I want to do both #1 and #2.
    How do I create that formula/query?

    The Transcript file includes the following fields:

    StudentId StudentName CourseNumberprc


    The Schedule file includes the following fields:

    Student ID Student Name Grade Level CourseNumber



    The Request file (for next year) includes the following fields:

    CourseReq Student ID

    So, StudentID will be unique to all tables and I need to know all CourseReq and/or CourseNumber that match CourseNumberprc


    Thanks so much!

  4. #4
    mlmelendez is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2014
    Posts
    3
    I forgot to mention that the Transcript file has another field "CreditEarned" and that class' "creditEarned" must be greater than 0...
    Hope it makes sense.

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,644
    Use the query builder to link the two tables on the studentID and course number fields with INNER JOIN. If the combination is in both tables then the query will show record. If you want to exclude the records where CreditEarned = 0 then apply that criteria to that field.
    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. Query, find duplicates
    By gmaster in forum Queries
    Replies: 2
    Last Post: 05-27-2014, 06:58 AM
  2. Replies: 5
    Last Post: 04-25-2013, 02:38 PM
  3. Find Duplicates Query - Excluding Items
    By Wahnsinn in forum Queries
    Replies: 1
    Last Post: 11-17-2011, 07:27 AM
  4. Find duplicates query to populate input form
    By kctalent in forum Queries
    Replies: 6
    Last Post: 08-22-2011, 03:12 PM
  5. Find Duplicates Query
    By mulefeathers in forum Queries
    Replies: 13
    Last Post: 04-22-2010, 05:39 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