Results 1 to 4 of 4
  1. #1
    toothpaste is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2017
    Posts
    9

    joining 2 tables using inner join

    I have the following 3 tables:

    activities:
    ID Guide Garden activityDate comment

    activeGuides:
    ID first_name last_name

    gardens:
    ID num

    I also have the following working query:

    SELECT [first_name] & ' ' & [last_name] AS Guide,
    activities.garden,
    activities.activityDate,
    activities.comment
    FROM activities
    INNER JOIN activeGuides ON activities.guide = activeGuides.ID

    But when I insert another INNER JOIN line which will include the garden's number instead of its ID, things stop working.
    Is there a way to enter another INNER JOIN line ?

    Thank you

  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,641
    Simplest is probably to add the table in design view. If the join doesn't appear automatically, click/drag to create it. Once the query is working, switch to SQL view and check the syntax.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    toothpaste is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2017
    Posts
    9
    Thank you

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,641
    No problemo.
    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. Replies: 4
    Last Post: 08-01-2016, 06:41 AM
  2. Replies: 6
    Last Post: 11-19-2013, 01:38 AM
  3. Joining two tables
    By rspai in forum Queries
    Replies: 7
    Last Post: 05-22-2012, 12:21 AM
  4. joining tables
    By frozendmj in forum Queries
    Replies: 5
    Last Post: 04-19-2011, 01:45 PM
  5. Help - Joining Tables..
    By fabian24 in forum Forms
    Replies: 3
    Last Post: 02-17-2011, 03:43 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