Results 1 to 3 of 3
  1. #1
    bosve73 is offline Novice
    Windows 7 64bit Access 2013 32bit
    Join Date
    Jul 2010
    Posts
    22

    SYNTAX ERROR when INNER JOIN on SQL tables

    Hi, I am having the following issue with the exact same SQL query



    Window7 + Access 2013: INNER JOIN query works without issues on SQL tables

    Windows 10 + Access 2016: exactly the same query: SYNTAX ERROR when INNER JOIN on SQL tables all other queries work fine.


  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,822
    Cross post https://access-programmers.co.uk/for...d.php?t=308231

    Provide query 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.

  3. #3
    bosve73 is offline Novice
    Windows 7 64bit Access 2013 32bit
    Join Date
    Jul 2010
    Posts
    22
    Quote Originally Posted by June7 View Post
    Cross post https://access-programmers.co.uk/for...d.php?t=308231

    Provide query SQL statement.
    SELECT DISTINCT BATCHSERIES.BATCHSERIESNO, STOCKTABLE.ITEMNAME, BATCHSERIES.BESKR1, BATCHSERIES.BESKR2, BATCHSERIES.BESKR3, BATCHSERIES.BESKR4, STOCKTABLE.ITEMNAME2UK, STOCKTABLE.ITEMNAME3UK, StockUnitConvert([STOCKUNIT]) AS Unit FROM BATCHSERIES INNER JOIN STOCKTABLE ON (BATCHSERIES.ITEMNUMBER = STOCKTABLE.ITEMNUMBER) AND (BATCHSERIES.DATASET = STOCKTABLE.DATASET) WHERE (((BATCHSERIES.STOCKSTATUS)=3) AND ((BATCHSERIES.DATASET)='AAB')) UNION SELECT '','********','','','','','','','' FROM BATCHSERIES

    ORDER BY BATCHSERIES.BATCHSERIESNO;

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

Similar Threads

  1. Error- Syntax Error in JOIN Operation
    By ahuffman24 in forum Access
    Replies: 4
    Last Post: 06-13-2019, 02:40 PM
  2. Syntax Error in Join Operation
    By R_Sam in forum Queries
    Replies: 1
    Last Post: 04-04-2016, 06:16 AM
  3. **Need help on Join Syntax error**
    By pradeepkumar089 in forum Queries
    Replies: 3
    Last Post: 12-23-2015, 11:55 PM
  4. Replies: 6
    Last Post: 11-19-2013, 01:38 AM
  5. Replies: 2
    Last Post: 06-13-2011, 06:04 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