Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Error after deleting a user-costomized CommandBar

Posted on 2011-03-17
2
Medium Priority
?
307 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 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

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

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

Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
Code that checks the QuickBooks schema table for non-updateable fields and then disables those controls on a form so users don't try to update them.
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…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

926 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