Solved

Access 2010, backstage button problem

Posted on 2011-03-03
2
808 Views
Last Modified: 2013-11-27
In table Usysribbons I have the following xml:

<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui">
  <ribbon startFromScratch="false">
    <!-- Ribbon XML -->
  </ribbon>
  <backstage>
    <button id="btnBackstage1" label="Label Backstage Button" imageMso="HappyFace" onAction="OnActionButton"/>
  </backstage>
</customUI>

In Module1 I have following code:

Sub OnActionButton(control As IRibbonControl)
 
    Select Case control.Id
    Case Else
            MsgBox "Button """ & control.Id & """ clicked", vbInformation
    End Select
End Sub

When I start my access app the button appears correctly but gives an error when clicked. The error says something like: "Access can't run macro or callbackfunction OnActionButton" . Se picture for details.
Appreciate any tips or hint on what I'm missing.
2011-03-03-085536.jpg
0
Comment
Question by:hallpett
2 Comments
 

Accepted Solution

by:
hallpett earned 0 total points
ID: 35026810
Problem solved! Reference to "Microsoft Office 14.0 Object Library" was missing.
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Access 2016 7 35
Open VBA code while form is open and running. 4 27
Switch 5 17
Using Third Party DLL with Access VBA 14 17
Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Familiarize people with the process of utilizing SQL Server views 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 Microsoft Access…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

821 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