Results 1 to 2 of 2
  1. #1
    Caulerpa is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jan 2013
    Posts
    4

    Pull Data from 2 Tables only if there is Data in 2nd Table

    Hello!

    I hope your week is starting well! I've never used queries before so I was hoping maybe someone could offer me some help. In Table A and B I have 6 columns.

    Column 1 - A Group ID
    Column 2 - A date corresponding to the GROUP ID (the same date can be used for multiple groups)
    Column 3 - Sample ID
    Column 4 - Sampling method (X in table A and Y in table B)
    Column 5 - Sample result 1 (these will be different in table A & B)
    Column 6 - Sample result 2 (these will be different in table A & B)

    An IMPORTANT thing to note is that there are less results that come up for Table A (sample method X)

    So, what I'm trying to get is a query that pulls up Column 1, 2, & 3 and then also pulls all of the columns from Tables A & B for Columns 4, 5, & 6 but ONLY if there is corresponding data for Table A (uses sample method X and has less results/rows/whatever).

    I hope this makes sense. Since I have no experience with Queries I have no idea how to do this X_X

    Thank you for any help you can offer and have a wonderful week!

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Pull Data from another table
    By bbranco in forum Access
    Replies: 1
    Last Post: 06-19-2013, 06:15 AM
  2. Replies: 3
    Last Post: 08-02-2012, 10:27 AM
  3. Replies: 4
    Last Post: 02-27-2012, 10:29 AM
  4. How can pull this data?
    By cap.zadi in forum Queries
    Replies: 21
    Last Post: 01-23-2012, 03:09 AM
  5. pull up data from a table into a form
    By MattD00 in forum Forms
    Replies: 1
    Last Post: 03-30-2011, 08:15 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