CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7

Threaded View

  1. #1
    Join Date
    Feb 2003
    Posts
    417

    Strange error in SQL statement

    I have a Memo type field in MS Access which is represented in the front end by a Multiline textbox of max length 4000. When I save a new record with 4000 chars in this field, I do not get any error. It works fine. However, when I write an update query for this field with the same data, I get an error saying:

    Code:
    Run-time error '-2147467259 (80004005)':
    
    Could not save; currently locked by another user.
    Please see picture attached.

    I get this error in the line I execute the SQL statement. If I enter data less than 4000, which is the max length of the textbox I get no error. I also get no error when I add a new record with 4000 chars. If I update a record with data less than 4000 chars for this field, I get no error.

    Anyone faced this problem? Please help me.
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured