Results 1 to 6 of 6
  1. #1
    wchoi0513 is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Jan 2019
    Posts
    2

    Cannot update. Database or object is read-only [runtime-error '2147217911 (80040e09)]

    Hi all,

    I am using Microsoft Access VBA to build a cash flow generation tool. Unfortunately, the tool sometimes generate a run-time error '2147217911 (80040e09) after a number of deals are processed. This error is quite random and irregular as the tool does not always stop at a specific deal. Moreover, it only happens when multiple tools are working in parallel.

    The underlying logic of this calculation is to open a linked cash flow database called "tbl_CFDetail" in a temporary recordset and keep adding new entry to the recordset in order to project the cash flows. I found that when this error is generated, the table "tbl_CFDetail" was kind of corrupted and was unable to add any new record.

    Does anyone have any idea about this issue? What is the possible cause and the possible solution to it? Appreciate if anyone could help. Thank you!


    Error message
    Click image for larger version. 

Name:	error_read_only2.png 
Views:	17 
Size:	3.7 KB 
ID:	36756

    Error in debug mode
    Click image for larger version. 

Name:	error_read_only1.png 
Views:	17 
Size:	1.0 KB 
ID:	36757

    tbl_CFDetail in error condition
    Click image for larger version. 

Name:	error_read_only.png 
Views:	16 
Size:	7.2 KB 
ID:	36758

    tbl_CFDetail in normal condition
    Click image for larger version. 

Name:	tbl_CFDetail.jpg 
Views:	18 
Size:	14.0 KB 
ID:	36759

    Thank you!

  2. #2
    wchoi0513 is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Jan 2019
    Posts
    2

    Access VBA error [Cannot update. Database or object is read-only]

    Hi all,

    I am using Microsoft Access VBA to build a cash flow generation tool. Unfortunately, the tool sometimes generate a run-time error '2147217911 (80040e09) after a number of deals are processed. This error is quite random and irregular as the tool does not always stop at a specific deal. Moreover, it only happens when multiple tools are working in parallel.

    The underlying logic of this calculation is to open a linked cash flow database called "tbl_CFDetail" in a temporary recordset and keep adding new entry to the recordset in order to project the cash flows. I found that when this error is generated, the table "tbl_CFDetail" was kind of corrupted and was unable to add any new record.

    Does anyone have any idea about this issue? What is the possible cause and the possible solution to it? Appreciate if anyone could help. Thank you!
    Error message
    Click image for larger version. 

Name:	error_read_only2.png 
Views:	17 
Size:	3.7 KB 
ID:	36756

    Error in debug mode
    Click image for larger version. 

Name:	error_read_only1.png 
Views:	17 
Size:	1.0 KB 
ID:	36757

    tbl_CFDetail in error condition
    Click image for larger version. 

Name:	error_read_only.png 
Views:	16 
Size:	7.2 KB 
ID:	36758

    tbl_CFDetail in normal condition
    Click image for larger version. 

Name:	tbl_CFDetail.jpg 
Views:	18 
Size:	14.0 KB 
ID:	36759

    Thank you!

  3. #3
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    make sure your rights have not changed on that folder,
    if shared db, make sure the db is split,
    SOME queries will invoke READ ONLY depending on the joins,
    sometimes the lock file, .lccdb, will stay open and invoke read only conditions.

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    I recommend you show readers the vba code involved.

  5. #5
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    Post the entire procedure code. Or provide the db by following instructions at bottom of my post.
    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.

  6. #6
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Duplicate threads merged since both had replies.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 3
    Last Post: 07-20-2015, 12:23 PM
  2. Replies: 2
    Last Post: 12-19-2014, 07:41 AM
  3. Replies: 5
    Last Post: 04-22-2013, 12:32 PM
  4. Cannot update. Database or object is read-only ERROR
    By Namibia in forum Import/Export Data
    Replies: 2
    Last Post: 06-05-2012, 05:32 PM
  5. Runtime Error '3027': Database or object is read only
    By 4x4Masters in forum Programming
    Replies: 4
    Last Post: 06-08-2010, 08:02 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