Complie Error on 2007 Ribbon Control

Posted on 2012-09-12
Last Modified: 2012-10-02
when trying to compile the following I get "user defined Event not defined"

Running Access 2007

Public Function OnActionButton(ctl As IRibbonControl)
End Function
    Run ctl.ID
End Function
Question by:seamus9909
    1 Comment
    LVL 84

    Accepted Solution

    Is your code snippet correct? I wouldn't think so (you've got an orphaned "End Function" and the Run line is not part of a procedure) - please review and post a valid snippet.

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Join & Write a Comment

    This article is a continuation or rather an extension from Cascading Combos ( and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
    QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
    As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
    In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

    731 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

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now