Fix a Disabled Delete Command for Objects in Access 2013
Question details
The user needs to delete database objects when the Delete command is disabled 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.
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.
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.
In the Navigation Pane, find the form, query, or table and note its exact name. Check whether a table is linked before choosing it.
Press Alt+F11 to open the VBA editor, then press Ctrl+G to open the Immediate window.
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.
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.

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.

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.




