Fix MS Access Delete Cancellation Issues with SQL Server 2019
Question details
Users experience unexpected behavior during deletion cancellation events in MS Access forms using linked tables connected to SQL Server 2019 or Azure SQL.

- Product
- Microsoft Access
- Device & OS
- not provided
- Scenario
- Canceling a deletion action on a form bound to a linked SQL Server table.
- Observed behavior
- The deletion cancellation event fails or behaves unpredictably, potentially deleting the record anyway or throwing an error.
Ensure you have a recent backup of your SQL Server database and the Access front-end file before modifying ODBC drivers or linked table configurations.
Update ODBC Drivers and Relink Tables
The most common cause is outdated ODBC drivers or incorrectly configured linked tables missing primary keys.
Microsoft Access relies heavily on correctly configured ODBC connections and properly defined primary keys to manage record-level events. Outdated drivers or missing indexes can cause cancellation events to fail.
Open SQL Server Management Studio (SSMS) and ensure the linked table has a strictly defined primary key and unique index.
Download and install the latest Microsoft ODBC Driver for SQL Server from the official Microsoft website.
In MS Access, navigate to External Data > Linked Table Manager, select the affected tables, and update their connections using the newly installed ODBC driver.
Open the affected form in Design View and verify that the Record Source property is directly bound to the correctly relinked table.

Check Server-Side Triggers and Cascading Deletes
SQL Server triggers or cascading delete rules might interfere with Access's ability to cancel a delete event.
Implement ADO or Pass-Through SQL Alternatives
If linked tables persistently fail, use ADO or Pass-Through queries to handle deletions manually.
Looking for a Lightweight and Free Office Suite? Try WPS Office
While WPS Office does not include a database management tool like MS Access, it provides a highly compatible, feature-rich suite for your document, spreadsheet, and presentation needs. If you are tired of complex configurations and expensive subscriptions, WPS Office is an excellent alternative for your daily productivity tasks.
- 1. Download the installer: Go to the official WPS website and download the free WPS Office installer.
- 2. Install the software: Run the installation wizard, follow the on-screen instructions, and select your preferred language.
- 3. Start creating: Open Writer, Spreadsheet, or Presentation to start editing highly compatible documents instantly.

Frequently Asked Questions
Why does Access fail to cancel deletions only on SQL Server 2019?
Changes in the backend database engine or outdated ODBC drivers can cause communication issues between the MS Access frontend and newer SQL Server versions, causing event cancellation to fail.
Does the ODBC driver version matter for Access linked tables?
Yes, older SQL Server Native Client drivers may lack full support for newer SQL Server 2019 or Azure SQL features, leading to unexpected event behaviors and connection instability.
How can I ensure Access recognizes my SQL Server primary keys?
When linking the table via the Linked Table Manager, Access usually prompts you to select a unique record identifier. Make sure you select the correct primary key columns during this step.
Can server-side triggers override an Access frontend cancellation?
Yes. If an INSTEAD OF DELETE trigger is fired, the SQL server takes control of the operation, which can prevent the Access frontend from properly canceling the event.




