Skip to content

Commit d819fd1

Browse files
authored
Merge pull request #10696 from MicrosoftDocs/Meera-SupportArticles-Working
New article for Access
2 parents c03ba03 + f2520c0 commit d819fd1

5 files changed

Lines changed: 120 additions & 0 deletions

File tree

26.3 KB
Loading
40.9 KB
Loading
42.7 KB
Loading
Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
---
2+
title: Operation is not supported error in Access and Excel
3+
description: Describes the scenarios in which this error is displayed when working in Access and Excel, and provides multiple solutions to resolve the issue.
4+
author: Cloud-Writer
5+
manager: dcscontentpm
6+
search.appverid:
7+
- MET150
8+
audience: ITPro
9+
ms.topic: troubleshooting
10+
ms.author: meerak
11+
ms.reviewer: denniwil
12+
ms.custom:
13+
- CSSTroubleshoot
14+
- CI 9185
15+
- sap: Errors & Crashing
16+
appliesto:
17+
- Access for Microsoft 365
18+
- Access 2024
19+
- Access 2021
20+
ms.date: 02/09/2026
21+
---
22+
23+
# Operation is not supported error in Access and Excel
24+
25+
## Summary
26+
27+
This article discusses the cause of errors that you encounter when you take any of the following actions:
28+
29+
- Use a query in a Microsoft Access database
30+
31+
- Use an Open Database Connectivity (ODBC) connection that includes a remote table reference
32+
33+
- Use wizards to perform tasks in Access
34+
35+
The article provides multiple solutions to resolve the errors.
36+
37+
## Symptoms
38+
39+
When you work with Access or Microsoft Excel, you receive one of the following error messages in different scenarios:
40+
41+
Error message: `Operation is not supported for this type of object`
42+
43+
When:
44+
45+
- The Access database contains a query that includes a remote reference.
46+
47+
- You create or refresh an ODBC connection by using either an Access driver or an Excel driver within an Excel workbook.
48+
49+
Error message: `Invalid use of Null`
50+
51+
When you:
52+
53+
- Add a control or a command button to an Access form or report.
54+
55+
- Create a query, form, or report by using a wizard in Access.
56+
57+
## Cause
58+
59+
In 2021, the [**AllowQueryRemoteTables** registry key](https://support.microsoft.com/topic/kb5002984-configuring-jet-red-database-engine-and-access-connectivity-engine-to-block-access-to-remote-databases-56406821-30f3-475c-a492-208b9bd30544) was added to allow you to disable remote table references when you run a query. This feature helps to make your applications more secure.
60+
61+
Beginning in the Office updates that were released on December 9, 2025, the **AllowQueryRemoteTables** registry key provides the following values.
62+
63+
| **Key value** | **Definition** |
64+
|---------------|---------------------------------|
65+
| 0 | Allow only in trusted databases |
66+
| 1 | Allow in all databases |
67+
| 2 | Disallow in all databases |
68+
69+
The "Allow only in trusted databases" is the default value for this registry key.
70+
71+
### Check for a remote table reference
72+
73+
To identify a remote table reference, check the SQL syntax of a query or command text, as shown in the following example.
74+
75+
| **Local table** | SELECT \* FROM \`Orders Query\` |
76+
|----|----|
77+
| **Remote table** | SELECT \* FROM \`C:\temp\Database.accdb\`.\`Orders Query\` |
78+
79+
## Solutions
80+
81+
This issue has multiple solutions. Select the solution that’s appropriate for your scenario.
82+
83+
### Solutions when you work with Access
84+
85+
- Add a trusted folder location that includes the database location by using either the Trust Center in Access or via group policy.
86+
87+
- Don’t use wizards in Access. To avoid wizards, take the following actions instead:
88+
89+
- When you use the **Create** tab, select an option such as **Table Design**, **Query Design**, **Form Design**, or **Report Design** that doesn't use a wizard.
90+
91+
- Disable Control wizards that you use for tasks such as adding a command button.
92+
Expand the **Controls** group, and clear the **Use Control Wizards** checkbox.
93+
94+
> :::image type="content" source="media/operation-is-not-supported-error/controls-group.png" alt-text="Screenshot of the Controls group in Access.":::
95+
96+
### Solutions when you work with apps other than Access
97+
98+
- Legacy ODBC connections in Excel are commonly constructed to include a remote table reference within the command text. The remote reference is used even if the table or query object that's referenced is local to the database or workbook that’s specified in the connection string. In this scenario, remove the remote table reference from the command text in the query because it's unnecessary. See the following example.
99+
100+
| **Original Command Text** | **Updated Command Text** |
101+
|----|----|
102+
| :::image type="content" source="media/operation-is-not-supported-error/incorrect-remote-reference.png" alt-text="Screenshot of incorrect remote reference to local table."::: | :::image type="content" source="media/operation-is-not-supported-error/correct-reference-to-local-table.png" alt-text="Screenshot of correct reference to local table."::: |
103+
104+
- To update the remote table reference in the command text if the name of the file or table contains spaces, use the following syntax.
105+
106+
| **Original command text** | **Updated command text** |
107+
|----|----|
108+
| SELECT \* FROM \`C:\temp\Database.accdb\`.\`Orders Query\` \`Orders Query\` | SELECT \* FROM \`Orders Query\` |
109+
110+
>[!NOTE]
111+
112+
>- These solutions also apply to the Power BI desktop app and other apps that use ODBC connections.
113+
>- Beginning in version 2601 of Microsoft 365 Apps, a remote table reference is treated as a local table reference during query execution if the database or workbook that’s supplied in the connection string matches the file that’s used in the remote table reference within the command text. Therefore, this error won’t occur.
114+
115+
### Solution that applies to all apps
116+
117+
1. Locate the **AllowQueryRemoteTables** registry key for your installation scenario by using the information in [KB 5002984](https://support.microsoft.com/topic/kb5002984-configuring-jet-red-database-engine-and-access-connectivity-engine-to-block-access-to-remote-databases-56406821-30f3-475c-a492-208b9bd30544).
118+
1. Set the value for the key to **1** to allow remote table references during query execution.

Office/Client/clienttoc/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@
122122
href: ../access/error-opening-sql-linked-table.md
123123
- name: OLE DB Provider for Jet and ODBC driver
124124
href: ../access/jet-odbc-driver-available-32-bit-version.md
125+
- name: Operation is not supported error
126+
href: ../access/operation-is-not-supported-error.md
125127
- name: Optimize Access when using ODBC data sources
126128
href: ../access/optimize-odbc-data-sources.md
127129
- name: Query must have at least one destination field

0 commit comments

Comments
 (0)