Results 1 to 2 of 2
  1. #1
    Matt117 is offline Novice
    Windows 10 Office 365
    Join Date
    Mar 2023
    Posts
    1

    Missing operator error

    Hello,

    I am attempting to use this SQL code in an access query to update the assigned to field for a maximum of 50 records where the fields Assigned to and GSOS Payable are both empty. Both fields are held on an existing table called GSOS Test.

    here is the code I am using

    UPDATE GSoS_Test
    SET Assigned_to = Name
    WHERE Assigned_to IS NULL AND GSOS_Payable IS NULL
    LIMIT 50;

    However this is returning a syntax error


    I'm pretty new to SQL code to attempted to use bard to get me the SQL code, which is the code posted above.



    Please help

  2. #2
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,938
    I never seen that limit clause in Access SQL?
    However in whatever sql it works in I would expect limit =50 ?

    https://support.microsoft.com/en-us/...4-e8dc3e460671
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

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

Similar Threads

  1. Replies: 6
    Last Post: 02-03-2020, 07:09 PM
  2. Replies: 2
    Last Post: 01-04-2016, 09:40 AM
  3. Replies: 3
    Last Post: 03-05-2013, 11:17 AM
  4. Replies: 6
    Last Post: 05-30-2012, 12:32 PM
  5. Missing Operator error
    By data123 in forum Forms
    Replies: 1
    Last Post: 03-15-2009, 04:34 PM

Tags for this Thread

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