Results 1 to 2 of 2
  1. #1
    harris71 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2013
    Posts
    1

    Query that excludes records with no 'children'

    Hello,

    I'm relatively new access, and I have the following question:



    I have two tables in my database, the 'sentence' table and the 'word' table. Each sentence entry can have several related words. I want a query that excludes sentences with no words linked to it, i.e. no entries in the related table. How do I do that?

    Thanks

    Harris

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    if you have a PK in your sentence table and your word table carries a FK to the sentence table (PK = primary key, usually an autonumber, FK = foreign key) just link the two tables through the PK/Fk and put in a criteria in the WORD table (FK field will work fine) of IS NULL

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

Similar Threads

  1. Replies: 1
    Last Post: 08-31-2012, 01:56 PM
  2. Replies: 4
    Last Post: 08-02-2012, 10:59 AM
  3. Relating parent and children records
    By Warrior in forum Forms
    Replies: 10
    Last Post: 07-24-2012, 04:57 PM
  4. Replies: 4
    Last Post: 05-30-2012, 08:54 AM
  5. Replies: 2
    Last Post: 03-20-2010, 11:08 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