?
Solved

Error after deleting a user-costomized CommandBar

Posted on 2011-03-17
2
Medium Priority
?
306 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 21

Accepted Solution

by:
Boyd (HiTechCoach) Trimmell, Microsoft Access MVP earned 2000 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

719 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