ssshidiufiduieurieさん、こんにちは。
参考情報になります。
・Access Database is getting corrupt again and again
16スレッド目以降で TQuasarさんが回避策を適用しなくても回避出来た方法について言及しています。
※詳細はスレッドをご確認下さい。
< TQuasarさん発言 一部抜粋>
We were able to identify a combination of delete and append queries to the same table, back-to-back that would cause this issue. After we rearranged the queries and/or entered some delay between such, we have not had the issue re-surface for weeks.
(この問題を引き起こす可能性がある、削除するクエリと追加するクエリの組み合わせを同じテーブルに識別することができました。クエリを並べ替えたり、その間に遅延を入力したりした後、数週間問題が発生したことはありません。)
Consecutive appends to different tables does not seem to be an issue.
We did not look for consecutive appends to the same table. (Though there are several such scenarios in the database) But, likely it is not a problem or we would have seen it create the corruption issue by now.
(異なるテーブルへの連続した追加は問題にならないようです。
同じテーブルへの連続した追加を探しませんでした。(データベースにはそのようなシナリオがいくつかありますが)しかし、おそらくそれは問題ではないか、または今ではそれが破損の問題を引き起こすことを確認したはずです。 )
Most instances just required a reordering of the delete queries, so they were not immediately prior to the append query to the same table.
There was one instance where I used DoEvents between the queries, which seemed to alleviate the problem.
(ほとんどの場合、削除クエリを並べ替える必要があるだけなので、同じテーブルへの追加クエリの直前ではありませんでした。
クエリ間でDoEventを使用した例が1つあり、これは問題を軽減しているように見えました。)
Were you able to identify exactly what procedures/queries/macros, etc were initiated when the file became corrupt?
As indicated in previous response, we were able to identify back to back queries where there was a delete and then append query on the same table. Adjusting these so they were not back to back and/or introducing a delay such as doevents, seems to have resolved
the issue without having to use the workaround. There may still be something else, but it has been 6-8 weeks now without the issue.
(ファイルが破損したときにどのプロシージャ/クエリ/マクロなどが開始されたのかを正確に特定できましたか?
前の応答で示したように、削除があった場所でバックツーバックのクエリを識別し、同じテーブルにクエリを追加することができました。これらが背中合わせにならないように調整したり、イベントなどの遅延を発生させたりすることで、回避策を使用しなくても問題が解決したようです。まだ何か他のものがあるかもしれません、それは今問題なしで今6-8週でした。)