Solved

Error after deleting a user-costomized CommandBar

Posted on 2011-03-17
2
300 Views
Last Modified: 2012-06-21
After deleting a user-Customized commandbar in an Access file, I receive the following error when I open this file:
---------------------------------------------------------------------------------------------------------------------------------------
DatabaseName cannnot find the object 'CommandBarName".
If 'CommandBarName' is a new macro or macro group, make shure you have saved it and that
you have typed its name correctly.
---------------------------------------------------------------------------------------------------------------------------------------

To find out the reason, I've deleted tables,forms,queries,modules and reports one by one,
and even now that the database is empty, the error message still keeps appearing.

I've checked Options-Current Database But couldn't find any reference to the deleted commandbars.

This database has been an Access 2003 database that was upgraded  to Access 2010.


An empty copy of this database (without any macro, module, form or table) is attached, in case you need to have a look at it.



Any kind of help to track this error message, is much appreciated.

test.zip
0
Comment
Question by:MnInShdw
2 Comments
 
LVL 21

Accepted Solution

by:
Boyd (HiTechCoach) Trimmell, Microsoft Access MVP earned 500 total points
ID: 35162513
I the issue is from the  command bar you delete was set as  default Start up  Menu Bar.

Run:

CurrentDb.Properties.Delete ("StartupMenuBar")

Open in new window


It fixed it for me in your test accdb
0
 
LVL 1

Author Closing Comment

by:MnInShdw
ID: 35162795
Million thanks.

You're a genius.

I never thought of that.
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question