Access 2007 - Hiding everything on load up and then creating toolbar via VBA

I have an Access 2003 database, which hides all of the toolbars and then creates its own.  However, I now need to have this database running on an Access 2007 PC.  Ideally I would like it to do the exact same, which is hide everything, open the Main Menu and then generate the icons through VBA.  If anyone could give me some pointers - it would be greatly appreciated.
Andy BrownDeveloperAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

tbsgadiCommented:
Hi AndrewDBrown,

I had something similar, did any changes in 2003 & it works in 2007.

Gary
0
Andy BrownDeveloperAuthor Commented:
What did you do?
0
tbsgadiCommented:
Just opened it in 2007 & it worked.
You can't make changes to it in 2007
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Andy BrownDeveloperAuthor Commented:
Sorry, It's my first time playing with 2007, but when I load the 2003 database in 2007.  It dispalys the ribbon, sidebar and doesn't want to run the code in the Main Menu without intervention .
0
tbsgadiCommented:
You need to make sure that all the Trustee settings are set to allow macros.
Also that StartupShowDBWindow is False.
0
Andy BrownDeveloperAuthor Commented:
Thank you - but how about hiding everything and displaying my custom icon bar.
0
tbsgadiCommented:
Are you using an mdb in 2007 or accdb?
0
Andy BrownDeveloperAuthor Commented:
mdb, since I will still need to use the database on some older 2003 platforms
0
tbsgadiCommented:
try using CommandBars("Menu Bar").Visible = False etc
0
Andy BrownDeveloperAuthor Commented:
No that doesn't do anything in 2007.  Just to recap.

It's and Access 2003 mdb database
I just want to run it on 2007 in the exact same way (same toolbards/icons etc)
I don't want the ribbon or sidebars to be displayed

Ultimately, I need to control it all via VBA, so when it loads it detects the version.  If 2003, carry on as normal, if 2007, hide everything and set cust icons.
0
tbsgadiCommented:
Maybe allow everything in your trustee settings to check that your macros are working.
I have a 2003 DB & have no problem hiding everything in 2007
0
Andy BrownDeveloperAuthor Commented:
But what about hiding the ribbon?
0
tbsgadiCommented:
When you hide the main toolbar it hides the ribbon
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Andy BrownDeveloperAuthor Commented:
Thank you for all of your help on this one - I'll have a further play/read.

All the best
0
tbsgadiCommented:
Glad to help! Good Luck!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.