Permission & Access Issues

Fix a Disabled Delete Command for Objects in Access 2013

Tauseeq MagsiTauseeq Magsi Nov 27, 2026 870 views

Question details

The user needs to delete database objects when the Delete command is disabled in Access 2013.

Fix a Disabled Delete Command for Database Objects in Access 2013
Product
Microsoft Access 2013
Device & OS
not provided
Scenario
Deleting forms, queries, or tables from an Access database.
Observed behavior
The Delete command is disabled when the user attempts to remove database objects.
Before you start

Confirm whether the database is a desktop database or an Access web app, and whether it is split between front-end and back-end files. Note the exact name and type of the object you want to delete; deleting a linked table in the front end removes the link, not the source table.

Solution 1Recommended

Delete a Desktop Database Object Using the VBA Immediate Window

Use this workaround when the right-click Delete command is unavailable in an Access desktop database.

The Immediate window can run a DeleteObject command directly. This workaround does not explain why the menu command is disabled, and any resulting error may help identify the restriction.

VBA is available for Access desktop databases, not Access web apps. In a split database, check which file contains the object before deleting it.

1
Identify the object

In the Navigation Pane, find the form, query, or table and note its exact name. Check whether a table is linked before choosing it.

2
Open the Immediate window

Press Alt+F11 to open the VBA editor, then press Ctrl+G to open the Immediate window.

3
Run the delete command

For a form, enter DoCmd.DeleteObject acForm, "ObjectName" in the Immediate window, replacing ObjectName with the exact form name, and press Enter. Use acQuery for a query or acTable for a table.

4
Check the result

Return to the Access Navigation Pane and check whether the object was removed. If an error appears, record its exact message and use it to investigate access, file, or object restrictions.

Delete a Desktop Database Object Using the VBA Immediate Window
The menu issue may remain: A successful VBA deletion is a workaround; it does not establish why the right-click Delete command was disabled.
Free Microsoft Office alternative

Work With Office Documents in WPS Office

WPS Office is a free, lightweight alternative for working with familiar Office documents, spreadsheets, and presentations. Its familiar interface and Microsoft Office format compatibility make migration straightforward. It does not fix Access or replace an Access database.

Use a familiar interface for everyday office workOpen and edit compatible Microsoft Word, Excel, and PowerPoint formatsMove document, spreadsheet, and presentation workflows to a lightweight suiteWork with spreadsheet data alongside your Access database tasks
microsoft office alternative - wps office

Frequently Asked Questions

How do I delete a query instead of a form?

In the VBA editor, press Ctrl+G and enter DoCmd.DeleteObject acQuery, "QueryName", replacing QueryName with the exact query name. Press Enter to run it.

Why is the Delete command disabled?

The supplied information does not establish the cause. Check whether the file is a desktop database or web app and whether it is split; an error from the VBA command may provide more specific information.

Does deleting a linked table remove the original table?

Deleting a linked table from the front-end database removes the link, not the source table in the back-end database. Check the table and file before running the command.

Can I use the Immediate window in an Access web app?

No. The VBA Immediate window workaround applies to Access desktop databases, not Access web apps.