Results 1 to 3 of 3
  1. #1
    Thompyt is offline Expert
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2014
    Location
    El Paso, TX
    Posts
    839

    Sysntax Error Inner Join

    I get an Syntax error in Join operation. Runtime '3135


    '
    Code:
    sSQLChild ="SELECT Table1.* FROM Table1 INNER JOIN SingleLins ONqryMEQUIPWithChild.[Equip LIN] = SingleLins.[Equip LIN] WHERETable1.parent_equipment_item_id = '" & sUniqueID & "' AND[RowType] = 'MEQUIP' ORDER BY Table1.ID;"Set rstChild =CurrentDb.OpenRecordset(sSQLChild, dbOpenDynaset)
    Red font is what I added to the code. The code was running fine before. I was trying to filter down some more by using another table.

  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,398
    so you have tables called Table1 an SingleLins

    your join is between a query and SingleLins, not Table1 and SingleLins

  3. #3
    Thompyt is offline Expert
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2014
    Location
    El Paso, TX
    Posts
    839
    Ajax,
    Thanks. I figured it out myself: INNER JOIN SingleLins ON qryMEQUIPWithChild.[Equip LIN] = SingleLins.[Equip LIN] to INNER JOIN SingleLins ON Table1.[Equip LIN] = SingleLins.[Equip LIN]

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

Similar Threads

  1. Join Key error
    By roger111 in forum Access
    Replies: 1
    Last Post: 08-26-2017, 07:35 AM
  2. **Need help on Join Syntax error**
    By pradeepkumar089 in forum Queries
    Replies: 3
    Last Post: 12-23-2015, 11:55 PM
  3. VBA/SQL Join Error
    By jgelpi16 in forum Queries
    Replies: 7
    Last Post: 12-03-2014, 09:44 AM
  4. Join Key Error Using Form
    By burrina in forum Forms
    Replies: 1
    Last Post: 12-08-2012, 06:44 PM
  5. Join Error
    By snowboarder234 in forum Database Design
    Replies: 11
    Last Post: 09-19-2011, 09:03 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