Solved

IDBE Ribbon Creator 2010

Posted on 2015-01-25
9
516 Views
Last Modified: 2015-01-27
Hi EE
I am a rank beginner creating custom Ribbon access 2010. I possed a question and got a lot of info from Gustav Brock.
I am now  using IDBE Ribbon Creator 2010 and have produced a custom ribbon using an old access 2003 app with the dropdown menu. I can't figure out how to get it working when I run the test program and select an object in the Ribbon I get the message selected button 6 and a line of german. In IDE Ribbon creator selecting controls TAB the is a section called Screentips and in the text box it states Open form frmname and a Set button. When I run the program what do I have to do to open the form associated with a button on the ribbon. When Finish IDE creates  functions does this have anything to do with how the ribbon works.

I have been using access long before office 2000 and thought as we progress in time life would be easier but it seems Microsoft has other ideas

Any help appreciated

chestera
0
Comment
Question by:chestera
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 2
  • 2
9 Comments
 
LVL 50

Accepted Solution

by:
Gustav Brock earned 250 total points
ID: 40570076
It takes a little to get hold on the ribbon - it is very different from a simple menu.
One reason is that it doesn't "do" anything - Access "asks" it what to do.

You may find good use for the helper class by Albert Kallal:

    http://www.kallal.ca/Ribbon/ribbon.htm

The ribbon is in no way easier than the commandbars but much more powerful, and that takes a little studying.

/gustav
0
 

Author Comment

by:chestera
ID: 40570237
Gustav Brock

Thank you

Alan
0
 
LVL 84

Assisted Solution

by:Scott McDaniel (Microsoft Access MVP - EE MVE )
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 250 total points
ID: 40570249
when I run the test program and select an object in the Ribbon I get the message selected button 6 and a line of german.
The Ribbon Creator program creates the Function calls needed to handle the user actions (i.e. Clicks) of the ribbon items, but it's up to you to handle those ribbons clicks.

Depending on the options you set, RC either (a) created a function with a very big Select Case statement or (b) created individual functions for the click event of each Ribbon item. You can review the XML of the ribbon (in the USysRibbons table) to determine what function is fired when a button is clicked. For example, this button would fire the "OnActionButton" function when the user clicks the button:
<button idMso="ExportWord" size="large" label="Export To Word" tag="RibbonName:=ABB;inMenu:=;CustomTagValue1:=;CustomTagValue2:=;CustomTagValue3:=;CustomPicture:=;CustomPicturePath:=" onAction="OnActionButton" getVisible="GetVisible" getEnabled="GetEnabled" />

Open in new window

The options on the Finish page determine how RC creates and updates the files in your database. Use them carefully, especially the "Replace Ribbon Callbacks" one. That will overwrite the basRibbonCallbacks module, and if you've added code to that to handle the button clicks ... well let's just say you can lose an entire day's work like that - and yes, I know from experience :) .
0
Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

 

Author Comment

by:chestera
ID: 40571702
Scott McDaniel

I wasn't sure if it was the XML file or Function call. now I know where to look. Thank you

Alan
0
 

Author Comment

by:chestera
ID: 40572074
Scott McDaniel

In the IDBE Ribbon creator in the Control Tab select a button where it gives btn info. Under screen tips it states
Open Form frmName then to the right there is a set button. What is this for I click and nothing seems to happen

A nice touch would have been attach the form to the button. Still trying to find where to attach a form to a btn. I have looked in the Get Callbacks (Textfile).

Alan
0
 

Author Comment

by:chestera
ID: 40572090
Scott Mc Daniel

In the Get Callbacks tectfile there is a section  "Select Case Control.id"
under each case btn there is a message box stating what button was selected is this where I make reference to a form associated whit a button

Alan
0
 
LVL 84
ID: 40572463
There are several function calls in that listing. As I mentioned earlier, it depends on the selections you made in the Ribbon Creator as to exactly where you'd modify the code to perform the actions you want.

If you have the big Select Case statement, then you'd have to find the Case statement that corresponds to the Control you want to code, and then add the code in that stub. So if I have a Control named "btn_OpenCustomerForm", I'd look for that item in the Select Case structure, and then add code to open my Customer Form.

In the IDBE Ribbon creator in the Control Tab select a button where it gives btn info. Under screen tips it states
Open Form frmName then to the right there is a set button. What is this for I click and nothing seems to happen
That simply sets the ScreenTip the user would see when hovering their mouse over that button.
0
 

Author Closing Comment

by:chestera
ID: 40572531
Thank you scott and Gustav for all your help
0
 
LVL 50

Expert Comment

by:Gustav Brock
ID: 40572534
You are welcome!

/gustav
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
This article describes two methods for creating a combo box that can be used to add new items to the row source -- one for simple lookup tables, and one for a more complex row source where the new item needs data for several fields.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

756 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