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

Multi tool use
I am using Microsoft Access VBA to build a cash flow generation tool. Unfortunately, the tool sometimes generate a run-time error
'2147217911 (80040e09) [Cannot update. Database or object is
read-only]
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!
Below is the script in error:
rst_CFDetail.AddNew
database vba ms-access
|
show 1 more comment
I am using Microsoft Access VBA to build a cash flow generation tool. Unfortunately, the tool sometimes generate a run-time error
'2147217911 (80040e09) [Cannot update. Database or object is
read-only]
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!
Below is the script in error:
rst_CFDetail.AddNew
database vba ms-access
1
I think you forgot to add the script? There's only a single line of code showing.
– Darren Bartrup-Cook
Jan 2 at 11:38
1
This error shows, that currently edited table is locked by another process. Sometimes it's really hard to find the root cause of this locking, it depends on the number of conditions
– Sergey S.
Jan 2 at 12:56
1
@DarrenBartrup-Cook. Yes I wish to post the whole script here. However, it is just too long as the tool is used to calculate the risk exposure of a large bank. Just want to see if anyone has any previous experience on this error with the above background first.
– Choi Wilson
Jan 2 at 15:18
1
I've usedAddNew
before if that counts as previous experience. I think it depends on the table as well - is it local or linked, does it have an index, is the recordset from a query - is it an updatable query, do you have write permission for the database back-end & probably 101 other things I haven't thought of/come across before.
– Darren Bartrup-Cook
Jan 2 at 15:25
1
@Santosh No, "tbl_CFDetail" does not have a text field to join other tables. Below is more background:The deals will be broken down into 10,000 deals per package. After cash flows are generated in this table for each package, the cash flow details will be aggregated and put in another table and the cash flows will be removed after the aggregation. This process will be repeated for each package until the cash flow generation for all packages are completed.
– Choi Wilson
Jan 2 at 15:27
|
show 1 more comment
I am using Microsoft Access VBA to build a cash flow generation tool. Unfortunately, the tool sometimes generate a run-time error
'2147217911 (80040e09) [Cannot update. Database or object is
read-only]
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!
Below is the script in error:
rst_CFDetail.AddNew
database vba ms-access
I am using Microsoft Access VBA to build a cash flow generation tool. Unfortunately, the tool sometimes generate a run-time error
'2147217911 (80040e09) [Cannot update. Database or object is
read-only]
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!
Below is the script in error:
rst_CFDetail.AddNew
database vba ms-access
database vba ms-access
edited Jan 2 at 12:46


Fatemeh Abdollahei
1,95411019
1,95411019
asked Jan 2 at 11:35


Choi WilsonChoi Wilson
82
82
1
I think you forgot to add the script? There's only a single line of code showing.
– Darren Bartrup-Cook
Jan 2 at 11:38
1
This error shows, that currently edited table is locked by another process. Sometimes it's really hard to find the root cause of this locking, it depends on the number of conditions
– Sergey S.
Jan 2 at 12:56
1
@DarrenBartrup-Cook. Yes I wish to post the whole script here. However, it is just too long as the tool is used to calculate the risk exposure of a large bank. Just want to see if anyone has any previous experience on this error with the above background first.
– Choi Wilson
Jan 2 at 15:18
1
I've usedAddNew
before if that counts as previous experience. I think it depends on the table as well - is it local or linked, does it have an index, is the recordset from a query - is it an updatable query, do you have write permission for the database back-end & probably 101 other things I haven't thought of/come across before.
– Darren Bartrup-Cook
Jan 2 at 15:25
1
@Santosh No, "tbl_CFDetail" does not have a text field to join other tables. Below is more background:The deals will be broken down into 10,000 deals per package. After cash flows are generated in this table for each package, the cash flow details will be aggregated and put in another table and the cash flows will be removed after the aggregation. This process will be repeated for each package until the cash flow generation for all packages are completed.
– Choi Wilson
Jan 2 at 15:27
|
show 1 more comment
1
I think you forgot to add the script? There's only a single line of code showing.
– Darren Bartrup-Cook
Jan 2 at 11:38
1
This error shows, that currently edited table is locked by another process. Sometimes it's really hard to find the root cause of this locking, it depends on the number of conditions
– Sergey S.
Jan 2 at 12:56
1
@DarrenBartrup-Cook. Yes I wish to post the whole script here. However, it is just too long as the tool is used to calculate the risk exposure of a large bank. Just want to see if anyone has any previous experience on this error with the above background first.
– Choi Wilson
Jan 2 at 15:18
1
I've usedAddNew
before if that counts as previous experience. I think it depends on the table as well - is it local or linked, does it have an index, is the recordset from a query - is it an updatable query, do you have write permission for the database back-end & probably 101 other things I haven't thought of/come across before.
– Darren Bartrup-Cook
Jan 2 at 15:25
1
@Santosh No, "tbl_CFDetail" does not have a text field to join other tables. Below is more background:The deals will be broken down into 10,000 deals per package. After cash flows are generated in this table for each package, the cash flow details will be aggregated and put in another table and the cash flows will be removed after the aggregation. This process will be repeated for each package until the cash flow generation for all packages are completed.
– Choi Wilson
Jan 2 at 15:27
1
1
I think you forgot to add the script? There's only a single line of code showing.
– Darren Bartrup-Cook
Jan 2 at 11:38
I think you forgot to add the script? There's only a single line of code showing.
– Darren Bartrup-Cook
Jan 2 at 11:38
1
1
This error shows, that currently edited table is locked by another process. Sometimes it's really hard to find the root cause of this locking, it depends on the number of conditions
– Sergey S.
Jan 2 at 12:56
This error shows, that currently edited table is locked by another process. Sometimes it's really hard to find the root cause of this locking, it depends on the number of conditions
– Sergey S.
Jan 2 at 12:56
1
1
@DarrenBartrup-Cook. Yes I wish to post the whole script here. However, it is just too long as the tool is used to calculate the risk exposure of a large bank. Just want to see if anyone has any previous experience on this error with the above background first.
– Choi Wilson
Jan 2 at 15:18
@DarrenBartrup-Cook. Yes I wish to post the whole script here. However, it is just too long as the tool is used to calculate the risk exposure of a large bank. Just want to see if anyone has any previous experience on this error with the above background first.
– Choi Wilson
Jan 2 at 15:18
1
1
I've used
AddNew
before if that counts as previous experience. I think it depends on the table as well - is it local or linked, does it have an index, is the recordset from a query - is it an updatable query, do you have write permission for the database back-end & probably 101 other things I haven't thought of/come across before.– Darren Bartrup-Cook
Jan 2 at 15:25
I've used
AddNew
before if that counts as previous experience. I think it depends on the table as well - is it local or linked, does it have an index, is the recordset from a query - is it an updatable query, do you have write permission for the database back-end & probably 101 other things I haven't thought of/come across before.– Darren Bartrup-Cook
Jan 2 at 15:25
1
1
@Santosh No, "tbl_CFDetail" does not have a text field to join other tables. Below is more background:The deals will be broken down into 10,000 deals per package. After cash flows are generated in this table for each package, the cash flow details will be aggregated and put in another table and the cash flows will be removed after the aggregation. This process will be repeated for each package until the cash flow generation for all packages are completed.
– Choi Wilson
Jan 2 at 15:27
@Santosh No, "tbl_CFDetail" does not have a text field to join other tables. Below is more background:The deals will be broken down into 10,000 deals per package. After cash flows are generated in this table for each package, the cash flow details will be aggregated and put in another table and the cash flows will be removed after the aggregation. This process will be repeated for each package until the cash flow generation for all packages are completed.
– Choi Wilson
Jan 2 at 15:27
|
show 1 more comment
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54005618%2frun-time-error-2147217911-80040e09-cannot-update-database-or-object-is-read%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54005618%2frun-time-error-2147217911-80040e09-cannot-update-database-or-object-is-read%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
MOril5EgTVtRIFVku RK,OH,U,9te,M2H5 8dYv 0BO9MIbGk5 4ZuNsTLaYv51wlkMTLgZYS,1VRQlZ3oma0WcJ9nsuLttaq84
1
I think you forgot to add the script? There's only a single line of code showing.
– Darren Bartrup-Cook
Jan 2 at 11:38
1
This error shows, that currently edited table is locked by another process. Sometimes it's really hard to find the root cause of this locking, it depends on the number of conditions
– Sergey S.
Jan 2 at 12:56
1
@DarrenBartrup-Cook. Yes I wish to post the whole script here. However, it is just too long as the tool is used to calculate the risk exposure of a large bank. Just want to see if anyone has any previous experience on this error with the above background first.
– Choi Wilson
Jan 2 at 15:18
1
I've used
AddNew
before if that counts as previous experience. I think it depends on the table as well - is it local or linked, does it have an index, is the recordset from a query - is it an updatable query, do you have write permission for the database back-end & probably 101 other things I haven't thought of/come across before.– Darren Bartrup-Cook
Jan 2 at 15:25
1
@Santosh No, "tbl_CFDetail" does not have a text field to join other tables. Below is more background:The deals will be broken down into 10,000 deals per package. After cash flows are generated in this table for each package, the cash flow details will be aggregated and put in another table and the cash flows will be removed after the aggregation. This process will be repeated for each package until the cash flow generation for all packages are completed.
– Choi Wilson
Jan 2 at 15:27