Solved

Error after deleting a user-costomized CommandBar

Posted on 2011-03-17
2
295 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.

705 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now