Results 1 to 2 of 2
  1. #1
    chalupabatman is offline Competent Performer
    Windows 10 Access 2013 64bit
    Join Date
    Aug 2016
    Posts
    114

    Convert SQL Server Syntax To Access Query Syntax

    I run this in SQL Server to do an aggregate in an update query
    Code:
        update HCL
        set masterAchieved = 'Yes'
        from HCL
        where gamertag in (select gamertag
              from HCL
              where medalsleft = 0)
    However, when I paste this into SQL View in acccess I get the error
    Syntax error - missing operator in query expression 'Yes' from HCL

    How should this be altered to run in Access 2013?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,815
    Remove from clause from the outer query.
    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: 14
    Last Post: 07-07-2015, 07:39 PM
  2. Access Query/SQL syntax
    By pdevito3 in forum Access
    Replies: 1
    Last Post: 04-10-2015, 02:10 PM
  3. Syntax Error in my Access SQL Query
    By hellfire45 in forum Access
    Replies: 1
    Last Post: 03-10-2015, 01:40 PM
  4. Incomplete Syntax Clause (syntax error)
    By ajetrumpet in forum Programming
    Replies: 4
    Last Post: 09-11-2010, 10:47 AM
  5. Convert query sql server for Access
    By webtony in forum Queries
    Replies: 0
    Last Post: 06-23-2009, 02:46 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