Results 1 to 2 of 2
  1. #1
    Middlemarch is offline Competent Performer
    Windows 10 Access 2019
    Join Date
    Mar 2015
    Posts
    479

    Select query errors when changed to Update

    SELECT tblMain.Prefix, Len([Comments]) AS Expr1, tblMain.SheetSort
    FROM tblMain


    WHERE (((Len([Comments]))>0 And (Len([Comments]))<5) AND ((tblMain.Sheet)=2));

    If I run this as an Update query it tells me Len([Comments]) is not a valid name.
    Is there some other way to do this ? I want to update to "" or vbNull.

    Field Comments is a Long Text datatype and does have text but some numbers have got in which I want to remove.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    I can UPDATE long text field.

    Show your UPDATE SQL.
    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: 1
    Last Post: 02-27-2018, 11:39 PM
  2. Query Update/Select Query (Wont Update)
    By NickWren in forum Access
    Replies: 1
    Last Post: 03-30-2016, 10:41 AM
  3. Replies: 8
    Last Post: 08-30-2015, 02:54 PM
  4. Query and Update Items which has been changed
    By Matze0710 in forum Queries
    Replies: 1
    Last Post: 07-13-2015, 06:10 AM
  5. Replies: 3
    Last Post: 03-05-2015, 12:51 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