Results 1 to 4 of 4
  1. #1
    hellfire45 is offline Novice
    Windows 7 32bit Access 2013
    Join Date
    Mar 2015
    Posts
    24

    Access SQL Syntax Troubles... Double LEFT OUTER JOIN


    It's telling me "Syntax Error [missing operator] in query expression 'dbo_Entities ON dbo_FCLIT.EntityNum = dbo_Entities.EntityNum
    LEFT OUTER JOIN Clientname ON dbo_Entities.Party3IDText = Clientname.ClientID'

    Any ideas?

    Code:
    SELECT dbo_FCLIT.EntityID as 'File#', dbo_FCLIT.ActionType as 'Action Type', dbo_Entities.Party3IDText as 'Client ID', Clientname.clientname FROM dbo_FCLIT
    LEFT OUTER JOIN dbo_Entities ON dbo_FCLIT.EntityNum = dbo_Entities.EntityNum
    LEFT OUTER JOIN Clientname ON dbo_Entities.Party3IDText = Clientname.ClientID;

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    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.

  3. #3
    hellfire45 is offline Novice
    Windows 7 32bit Access 2013
    Join Date
    Mar 2015
    Posts
    24
    I don't see the answer to the above question in that thread. I'm trying to join 3 tables together as seen below

    Code:
    SELECT dbo_FCLIT.EntityID AS ['File#'], dbo_Entities.Firstname AS ['Loan#'], dbo_FC_Milestone.Stage, dbo_FCLIT.GroupNumNum AS ['Numer of Actions'], dbo_FCLIT.ActionType AS ['Action Type'], dbo_FCLIT.StartAction AS ['Action StartDate'], dbo_FCLIT.[End], dbo_Entities.Party3IDText AS ['Client ID']
    
    
    FROM dbo_FCLIT LEFT JOIN dbo_Entities ON dbo_FCLIT.EntityNum = dbo_Entities.EntityNum
    
    
    LEFT JOIN dbo_FC_Milestone ON dbo_FCLIT.EntityNum = dbo_FC_Milestone.EntityNum
    
    
    WHERE (dbo_FCLIT.ActionType = 'Answer Affir Defense') AND ((dbo_Entities.Party3IDText ='245204') OR (dbo_Entities.Party3IDText = '327599'));

  4. #4
    hellfire45 is offline Novice
    Windows 7 32bit Access 2013
    Join Date
    Mar 2015
    Posts
    24
    Nevermind. I got it. It was missing brackets on the joins as seen below. That's so weird why would the syntax be different in Access than in SQL server? It's both SQL. SQL is SQL right?

    Code:
    SELECT dbo_FCLIT.EntityID AS ['File#'], dbo_Entities.Firstname AS ['Loan#'], dbo_FC_Milestone.Stage, dbo_FCLIT.GroupNumNum AS ['Numer of Actions'], dbo_FCLIT.ActionType AS ['Action Type'], dbo_FCLIT.StartAction AS ['Action StartDate'], dbo_FCLIT.[End], dbo_Entities.Party3IDText AS ['Client ID']
    
    
    FROM ((dbo_FCLIT LEFT JOIN dbo_Entities ON dbo_FCLIT.EntityNum = dbo_Entities.EntityNum)
    
    
    LEFT JOIN dbo_FC_Milestone ON dbo_FCLIT.EntityNum = dbo_FC_Milestone.EntityNum)
    
    
    WHERE (dbo_FCLIT.ActionType = 'Answer Affir Defense') AND ((dbo_Entities.Party3IDText ='245204') OR (dbo_Entities.Party3IDText = '327599'));

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

Similar Threads

  1. Replies: 4
    Last Post: 01-23-2014, 03:07 PM
  2. Left OUTER Join to more than one table?
    By oemar00 in forum Queries
    Replies: 3
    Last Post: 09-20-2013, 03:58 PM
  3. Left-Outer Join on Non-Unique ID
    By defaultuser909 in forum Queries
    Replies: 2
    Last Post: 09-06-2012, 10:16 AM
  4. Replies: 4
    Last Post: 09-03-2012, 04:53 PM
  5. Outer left join leaves out null values
    By mschles4695 in forum Queries
    Replies: 1
    Last Post: 12-22-2010, 11: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