Results 1 to 5 of 5
  1. #1
    balajigade is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Mar 2014
    Posts
    30

    Find Missing Record


    I am maintaining a database of students and their results. The fields in the 'results' table are student_ID, subject_code & credits. There are 10 subjects and the credits are tabulated student_ID-wise, i.e. the student_ID changes after every 10 records. Simple. After updating the table by copy-pasting from an excel file containing latest results, it was noticed that some results are missing--a few student_IDs had only 8 or 9 subject_codes against their entries. There are no null values at all. Now how to set a query to find out what are the student_IDs and the sub_codes for which credits are not available?

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    You want an OUTER JOIN. Take the tSubect table join it to tResults table on subjectID. Dbl-click the 'join line' between tables it will ask what type of join?

    You want ALL records in tSubject but not in tResults. Bring down [subject] field from both tables (and any others)
    Run the query and the missing records will show as blank.

  3. #3
    dmon2010 is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Sep 2013
    Posts
    39
    Is there a way to do this based on 3 columns? I'm working on a comic book database and I can pull up my missing numbers, but only based on title and issue. I'd like to be able to base it on title, issue and version.

    Title and issue are self explanatory, version is "A", "B", "C", etc depending on cover version or if its a reprint.

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    What is the PK of your table?
    What query(ies) have you tried? With what results?

  5. #5
    balajigade is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Mar 2014
    Posts
    30
    Thanks for quick response. I've tried exactly the above but I what I see is the sub_code field fully populated and all other fields shown as blank for records where the results are missing. What I want is to see is the studentID with the sub_code which has a blank value

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

Similar Threads

  1. Query to Find a Missing Record
    By KCC47 in forum Queries
    Replies: 8
    Last Post: 05-06-2014, 01:25 PM
  2. Find missing numbers
    By Betty in forum Access
    Replies: 1
    Last Post: 07-15-2012, 09:09 PM
  3. How to find missing date query
    By twhite in forum Queries
    Replies: 8
    Last Post: 09-02-2010, 02:42 PM
  4. Find Missing Number in Sequence per Record
    By escuro19 in forum Programming
    Replies: 1
    Last Post: 11-10-2009, 03:15 PM
  5. Find Missing Records
    By Flanders in forum Queries
    Replies: 6
    Last Post: 06-24-2009, 07:02 AM

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