?
Solved

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

Posted on 2016-08-12
2
Medium Priority
?
44 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 2000 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 85
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

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

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

Explore the ways to Unlock VBA Project Password Excel 2010 & 2013 documents. Go through the article and perform the steps carefully to remove VBA Excel .xls file.
Windows Explorer lets you open cabinet (cab) files like any other folder. In VBA you can easily handle normal files and folders, but opening and indeed creating cabinet files takes a lot more - and that's you'll find here.
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

807 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