Note that there are some explanatory texts on larger screens.

plurals
  1. POHow do I overcome / work around this difference between local and linked Access Tables
    primarykey
    data
    text
    <p>Ok. Quick background: MS Access 2003 with 2003/2003 format MDB file upgraded from Access 97.</p> <p>For the purposes of this example, there are two tables.</p> <pre><code>Table 1 Asset ID - (text 20) ParentID - (text 20) Other fields AssetRels ID - (text 20) </code></pre> <p>When a record is added to Asset, the ID is added to AssetRels.</p> <p>From Asset.ID to AssetRels.ID there is a relationship that exists that enforces referential integrity with cascade update and cascade delete.</p> <p>From AssetRels.ID to Asset.ParentID there is a relationship that enforces referential integrity with cascade update only.</p> <p>I have 2 records in Asset</p> <pre><code>VACU0703200, NULL VACU0703250, VACU0703200 </code></pre> <p>In the data DB, I can go into the table and change VACU0703200 to VACU0704500 and the changes propogate as expected.</p> <p>If I open the front end DB that links to the data DB, and try the same change (in the table directly) I get "Could not update; currently locked" (no, nothing about 'another session', that's the whole error message)</p> <p>Both databases are set to "no lock" for the "default record locking"</p> <p>Obviously, there is some difference in row/page/table level locks that is preventing the cascade update from working.</p> <p>Does anyone know of some property settings that I can use somewhere to stop this error? I would prefer not to have to remove the relationship, but otherwise I might have to, and handle it in code.</p> <p>Edit: Cause is that the table contains a Memo field. Apparently via the linked table, having the Memo field overflow the 4K row size escalates to a table lock. which in turn triggers the problem.</p> <p>Solution (hackish) is to prevent edits to the ID field on the form, and add a new form to rename. Save changes before opening the new form, and performing the update via an update query works.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload