Solved

Access: How do I programatically create and/or add a custom ribbon menu on file open?

Posted on 2016-08-12
2
30 Views
Last Modified: 2016-08-13
I'd like a custom made ribbon to be added to Access (and the others hidden) when I open a specific file. I need a few buttons on it connected to macros (or directly to VBA if possible) with names and images. The ribbon should be automatically removed when the file is closed.

Is there a tutorial about this somewhere?

TIA!
Dennis
0
Comment
Question by:Dennis_Gundersen
2 Comments
 
LVL 14

Accepted Solution

by:
wsh2 earned 500 total points
ID: 41754782
Here is a 4 part video series covering everything about MsAccess ribbons (including VBA interaction):

Making a Custom Ribbon in Microsoft Access
Part 1:  https://www.youtube.com/watch?v=Zt3F4_Z5LIw
Part 2:  https://www.youtube.com/watch?v=6dIqHMpJrh8
Part 3:  https://www.youtube.com/watch?v=kBD_eYEgie4
Part 4:  https://www.youtube.com/watch?v=2YW_eDeCz3E

Many thanks to "Access Jitsu" for his excellent scholarship in making these videos!
0
 
LVL 84
ID: 41754786
Setting a specific ribbon to show when you open a specific Access file is fairly straight forward. You just add the XML to the USysRibbons table, and select the name in the Access Options - Current Database - Ribbon and Toolbar Options.

Far more difficult is actually creating the ribbon, which can be a HUGE PITA. In my opinion, if you must create custom ribbons the tool to use is Gunter's RibbonCreator:

http://www.avenius.de/en/
0

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.

776 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