title: Custom Ribbon onAction syntax question
body: <p>I followed the <a href="http://office.microsoft.com/en-us/access-help/customize-the-ribbon-HA010211415.aspx#BM2">directions here</a> to create a custom ribbon for an Access application.  But none of the buttons worked!  I kept getting an error that stated Access couldn't find the function or macro, even though it was public and in a standard module.</p>
  
  <p>Eventually I discovered that it would work if I used the following syntax:</p>
  
  <p><code>onAction="=fncMyFunction('string argument', 1234)"</code></p>
  
  <p><code>fncMyFunction</code> receives the manually typed in arguments, but not the ribbon object.</p>
  
  <p>In Word for another project, I created a custom Ribbon by opening the document up as a .ZIP file, adding the XML in the appropriate place, and adding a reference to it.  <a href="http://msdn.microsoft.com/en-us/library/aa338202(v=office.12).aspx">Relevant directions somewhere in this novel here</a>.</p>
  
  <p>In Word, I was able to have everything work the way I expected it to with the following syntax:</p>
  
  <p><code>onAction="fncMyFunction"</code></p>
  
  <p>In Word, <code>fncMyFunction</code> has a ribbon object passed to it when the button is clicked.</p>
  
  <p>What's the deal here?  Why the different syntax?  And is one way or the other "wrong?"</p>