Results 1 to 3 of 3
  1. #1
    needtechhelp is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2013
    Posts
    1

    OnAction attribute error in RibbonXML

    I created customized ribbon in Access 2010 by following the instructions here:
    <deleted dead link-pbaldy>

    After restarting the application, I get the following error:

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

    Here is the XML:

    <customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui">
    <ribbon startFromScratch="true">
    <tabs>
    <tab id = "tbApp2" label = "APP2">
    <group id="grpDP" label="Departments">
    <button id = "DP1" label="COSTCENTER" OnAction="OpenCCTFrm.OpenForm()')"/>
    </group>
    </tab>


    </tabs>
    </ribbon>
    </customUI>

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    I am not having any luck getting a custom button on ribbon tab. I can get it on the QAT.

    Here is a thread discussing my early experience with custom ribbon http://forums.aspfree.com/microsoft-...at-303789.html

    The example db's helped me get what I wanted.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    akhmadahdiyat is offline Novice
    Windows 7 32bit Access 2013
    Join Date
    Oct 2013
    Posts
    21
    OnAction="OpenCCTFrm.OpenForm()')" is not right
    OnAction="MacroOrFunctionName"
    OnAction was to call a macro or sub/function named MacroOrFunctionName

    try using:<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">

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

Similar Threads

  1. Manually changing attribute
    By michaeljohnh in forum Programming
    Replies: 4
    Last Post: 09-14-2010, 12:50 PM
  2. Replies: 9
    Last Post: 07-21-2010, 06:34 AM
  3. How to access the description attribute
    By joethall in forum Access
    Replies: 1
    Last Post: 06-08-2010, 03:05 PM
  4. Replies: 5
    Last Post: 05-05-2010, 04:31 PM
  5. Unnhide Attribute?
    By thorsonb in forum Access
    Replies: 1
    Last Post: 03-30-2010, 10:21 PM

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