Short answer: #Deleted means Access can no longer find a record it was displaying. If another user deleted it, just refresh. If it happens with linked SQL Server tables right after saving, the table usually needs a proper primary key or a fix to how its key is linked. If rows stay #Deleted after you close and reopen, the database may be corrupted.
Reviewed by Anthony Passeri, MBA, certified Microsoft Access Expert with 21+ years of Access development.
Is It Harmless or Serious?
| What you see | Likely cause | Seriousness |
|---|---|---|
| A few rows show #Deleted, and they disappear when you refresh or reopen | Someone else deleted those records while you had them open | Harmless |
| New or edited rows show #Deleted in linked SQL Server (or other ODBC) tables | Access can’t re-find the row after saving, usually a key problem | Needs a fix, but your data is usually fine |
| Rows show #Deleted in every field and stay that way after reopening | Damaged records or indexes | Serious: possible corruption |
Situation 1: Someone Else Deleted the Record
When you open a form or table, Access loads the records. If another user (or a delete query) removes some of them while you’re working, Access still shows those rows, now marked #Deleted.
Fix: refresh the data. Choose Home > Refresh All, or press Shift+F9 to requery the records. You can also close and reopen the form or table. The rows disappear. No data is damaged.
Situation 2: Linked SQL Server or ODBC Tables
This is the most common serious cause. After you add or edit a record in a linked table, Access tries to re-read that row using its key. If it can’t find a match, it shows #Deleted, even though the record was saved on the server.
Typical reasons and fixes:
- The table has no primary key Access recognizes. Add a primary key (or a unique index) to the table in SQL Server, then relink the table in Access with the Linked Table Manager. Good keys are the foundation of everything; see Designing Access Tables and Relationships.
- The key is a bigint that Access links as text. In Access 2016 (version 16.0.7812) and later, turn on Support Bigint Data Type for Linked/Imported Tables in File > Options > Current Database, then relink. Microsoft notes this changes the database’s compatibility with older Access versions; see its Large Number data type guide.
- The key uses an imprecise type, such as float or real. Rounding means Access can’t match the row exactly. Change the key to an integer type on the server.
- A trigger or default value changes the key after insert. Access looks for the key it sent, not the one the server created. Use an identity column the server generates, and avoid triggers that alter key values.
- The table structure changed on the server. Relink the table with the Linked Table Manager so Access picks up the new structure.
For MySQL or MariaDB back ends, check the ODBC driver’s “Return matched rows instead of affected rows” option, a common fix for #Deleted with those drivers.
If linked tables fail with error messages rather than #Deleted, see ODBC Call Failed.
Situation 3: Corruption
If records show #Deleted in every field and stay that way after you close and reopen the database, the records or indexes are probably damaged.
- Make a copy of the database and work only on the copy.
- Get everyone out, and delete any leftover lock file (.laccdb or .ldb).
- Run Compact and Repair on the copy: File > Info > Compact & Repair Database. See Microsoft’s compact and repair guide.
- If #Deleted rows remain, copy the good records into a new table (or import all objects into a new blank database), then delete or re-create the damaged rows from a backup.
- Restore from backup if too many records are affected.
Corruption rarely stops at a few rows. If Access also warns that the database is in an inconsistent state, or the file stops opening with “Unrecognized database format”, see How to Repair a Corrupted Access Database.
How to Prevent #Deleted Records
- Give every table a primary key, in Access and on SQL Server
- Use integer identity keys on linked SQL Server tables
- Relink tables after any server-side change
- Split the database and keep the back end off Wi-Fi, VPN and sync folders
- Compact regularly and back up nightly
The full checklist is in How to Keep Your Access Database Safe From Corruption.
When to Get Help
If #Deleted keeps appearing on linked tables, our Access to SQL Server migration team fixes keys, links and queries so Access and SQL Server work together properly. If it’s corruption, see our Access database repair service, and for ongoing prevention, maintenance and support.
Still seeing #Deleted? Book a free diagnostic and we’ll find out whether it’s a linking problem or corruption.
Frequently Asked Questions
Why do my Access records show #Deleted?
Usually because another user deleted them after you opened the table, which a refresh fixes. In linked SQL Server tables it’s usually a key problem, and if it persists after reopening, it can mean corruption.
How do I get rid of #Deleted in Access?
Choose Home > Refresh All or press Shift+F9. If the rows remain after reopening, run Compact and Repair on a copy, or fix the primary key on linked SQL Server tables and relink them.
Why do new records show #Deleted in a linked SQL Server table?
Access can’t re-find the row after saving. Common causes are a missing primary key, a bigint key linked as text, a float key, or a trigger that changes the key on insert.
Is my data lost when records show #Deleted?
Usually not. With linked tables the record is normally saved on the server, and after another user’s deletion the change was intentional. Persistent #Deleted rows after reopening can mean real damage, so back up immediately.
Talk to an Access Expert
Not sure what this means for your database? Book a free diagnostic call. No sales pitch, just a straight conversation about what makes sense for your situation.
Phone: 623-267-5720
Email: info@accessevolved.com
Access Evolved | 19580 W Indian School Rd, Ste 105 #815, Buckeye, AZ 85396
Sources
- Microsoft Support: Using the Large Number data type (bigint linking option)
- Microsoft Support: Compact and repair a database
The causes and fixes for linked-table #Deleted reflect long-standing Access and SQL Server behavior and Access Evolved’s own experience. Confirm the exact option name in File > Options on your version of Access before publishing a screenshot.

