Results 1 to 6 of 6
  1. #1
    Timothy is offline Novice
    Windows 10 Access 2016
    Join Date
    Jul 2017
    Location
    Pittsburgh
    Posts
    3

    Making a Custom Ribbon in Access

    There is a very nice set of videos to help creating a menu using custom ribbon via xml. This video has 4 parts and upon reaching the 4th part whereby you add line of code to the XML code to open the desired form. The line that I added is the XML command: onAction="ribOpenForm". ribOpenForm is a global module with a parameter to open the desired form.



    I keep getting an error code 0x800004005 in the Custom UI XML of my database. The attribute "OnAction" on the element '{http://schemas.microsoft.com/office/2009/07/customui}button" is not defined in the DTD/Schema. I am not familiar with the schema file and what to do next when the onAction command does not work?

    Can anyone help me resolve this issue? The video to help create custom ribbon that I am referring to is located: https://www.youtube.com/watch?v=2YW_eDeCz3E

  2. #2
    aytee111 is offline Competent At Times
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    I have to admit ignorance on this subject, but here is what is in an existing database:

    Code:
    strRibbonXML = strRibbonXML & "<command idMso= 'ApplicationOptionsDialog' enabled='true' onAction='OnActionOptionsButton'/>"
    There there is a function defined:
    Code:
    Public Sub OnActionOptionsButton(control As IRibbonControl, ByRef cancelDefault)
    ' Callback from ApplicationOptionsDialog
    ' To be used to display a custom message when the File>Options menu option is selected
    MsgBox "The Options dialog has been disabled.", vbInformation, "Microsoft Access Options"
    cancelDefault = True
    End Sub
    Not sure if this can help you.

  3. #3
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228
    you could create a background form with all the functionality you want and have it sit there open on full screen. just an idea.

  4. #4
    Timothy is offline Novice
    Windows 10 Access 2016
    Join Date
    Jul 2017
    Location
    Pittsburgh
    Posts
    3
    Thank you for your reply!

    I tried your strRibbonXML.... statement but unfortunately it returns incorrect document syntax.

    The error message below with the approach in the video specifically has to do with the DTD/Schema they reference in the http://schemas.... line. The frustrating part is that it works flawlessly on the youtube video which makes me wonder if there is a reference I'm missing? I can't seem to find how to fix that error on the internet.

    "The attribute "OnAction" on the element '{http://schemas.microsoft.com/office/2009/07/customui}button" is not defined in the DTD/Schema."

    Thanks again!

  5. #5
    Timothy is offline Novice
    Windows 10 Access 2016
    Join Date
    Jul 2017
    Location
    Pittsburgh
    Posts
    3
    Thank you for your reply.

    Yes that is definitely a work around to using the custom ribbons. MS provides the feature to make custom ribbons and I would like to use that approach if I can make it work but its not looking good so far. :-(

  6. #6
    HiTechCoach's Avatar
    HiTechCoach is offline MS MVP - Access Expert
    Windows 10 Access 2013 32bit
    Join Date
    Jul 2010
    Location
    Oklahoma, USA
    Posts
    702
    Here is my goto site for all things Acess Ribbon. There are great exmaples and tips besides a great tool that is worth purchasing.

    Ribbon Creator

    FWIW: Thisis the tool that even Access xperts/gurus and MVPs use.

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

Similar Threads

  1. Custom Ribbon
    By June7 in forum Access
    Replies: 13
    Last Post: 08-01-2014, 02:44 AM
  2. Custom Ribbon question
    By croydon in forum Access
    Replies: 1
    Last Post: 12-13-2013, 10:34 AM
  3. Create a custom ribbon
    By nick.h in forum Access
    Replies: 3
    Last Post: 03-15-2013, 02:12 PM
  4. custom Ribbon question
    By jscriptor09 in forum Access
    Replies: 0
    Last Post: 07-17-2012, 02:35 PM
  5. Custom Ribbon
    By nkuebelbeck in forum Programming
    Replies: 5
    Last Post: 08-25-2011, 11:55 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