Results 1 to 5 of 5
  1. #1
    Stephen is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2018
    Posts
    7

    Access 2010 Ribbon QAT Callback Error

    Hi, I'm having trouble getting Access 2010 to accept an "OnRibbonLoad" and "RibbonButtonClick" callback function at startup.

    I obtained a working copy online and have copied the associated table, form and module into a new database. Unfortunately I cannot get the callbacks to work in the new database. I have attached the new database for your perusal and would really appreciate your advice or guidance.

    My goal is to get the QAT functioning with a button click to a form.



    I have done some investigating myself and obtained various samples/examples to work this out but all fail when I copy into a new database.

    I am new to this and apologize if I am missing something obvious.

    Thanks in advance
    Steve
    Attached Files Attached Files

  2. #2
    Perceptus's Avatar
    Perceptus is offline Expert
    Windows 10 Access 2016
    Join Date
    Nov 2012
    Location
    Knoxville, Tennessee
    Posts
    659
    Thos are not functions in your module. they are Subs. Change to Sub to Function? Dont know what "examples" you used.

  3. #3
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,800
    While I agree that most/all procedure calls of this nature have to be functions, I think the db you provided is missing a required reference because fixing the functions results in a user defined function error message. Try adding the Office library for your Access version. But my guess is that this just a stripped down version of your actual db and the real thing has the reference since there's no file or table to build a ribbon with either.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  4. #4
    Stephen is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2018
    Posts
    7
    Good afternoon,
    Thank you for both...

    I changed the subs to functions but still have the same problem. I also checked my office library for my Access 2010 version which didn't rectify the issue.

    The sample I used to learn from is located here: http://www.accessribbon.de/en/?Acces...__Controls:QAT

    I'm certain I copied everything that is required from the sample database but it still produces an error. Any further help would be appreciated.

    Thanks

  5. #5
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Post 4 was moderated, I'm posting to trigger email notifications.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 1
    Last Post: 08-05-2015, 11:08 AM
  2. Replies: 5
    Last Post: 09-28-2013, 05:48 PM
  3. Windows 7, Access 2010. Nav Pane, Ribbon
    By redbull in forum Programming
    Replies: 5
    Last Post: 08-03-2012, 12:00 PM
  4. Access 2010 Ribbon
    By tcheck in forum Access
    Replies: 1
    Last Post: 11-01-2011, 08:50 AM
  5. Ribbon in access 2010
    By albealedin in forum Access
    Replies: 6
    Last Post: 09-16-2011, 11:31 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums