Results 1 to 6 of 6
  1. #1
    comfygringo is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jul 2013
    Posts
    12

    Multiple Inner Joins

    I can't get this right no matter how hard I try. Any help would be appreciated.

    Code:
    SELECT Salutation.Salutation, valid_numbers.[first name], valid_numbers.[last name], ([house number] & Chr(32) & [street name]) AS address, city, st, zip, (security.[first name] & Chr(32) & security.[last name]) as Agent
    FROM valid_numbers 
    INNER JOIN salutation 
    INNER JOIN security 
    ON security.userid = valid_numbers.userid
    ON Salutation.ID = Valid_Numbers.Salutation 
    where [send letter] = true and [letter sent date] is null


  2. #2
    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,726

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Are you using the query designer to help build the SQL statement?
    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.

  4. #4
    comfygringo is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Jul 2013
    Posts
    12
    No. Maybe I should try that.

  5. #5
    comfygringo is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Jul 2013
    Posts
    12
    I solved it using the example thread that you provided. I just needed to put parenthesis in the right place.

    Thanks!

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    The query builder is very useful to help construct SQL statements that can then be pasted into VBA code and adjusted as needed.
    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. Replies: 6
    Last Post: 06-21-2013, 08:14 AM
  2. Replies: 9
    Last Post: 08-31-2012, 12:00 PM
  3. sql problems with multiple inner joins
    By mejia.j88 in forum Queries
    Replies: 1
    Last Post: 01-03-2012, 05:41 PM
  4. Multiple Left Joins From Same Column
    By x0200196 in forum Access
    Replies: 1
    Last Post: 09-08-2011, 10:14 AM
  5. Multiple Joins in multiple tables
    By access_user123 in forum Access
    Replies: 1
    Last Post: 06-22-2011, 02:51 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