I have created a custom menubar for an application that I will be using in the near future. I need to pass the Tag Property of the commandbar button to a form I created to print various reports. How can I accomplish this?????
I don't know a solution to directly pass the button tag property.
But when you set the button Tag property, modify too the OnAction property: call a fonction with a parameter that is the same value than tag.
Example:
You set button tag to "MyTag"
Set the OnAction to =Menu_OnClickButton("MyTag"
Add this function into a module :
Public Function Menu_OnClickButton(ByVal Tag As String)
'Send on click event to form
set frm = GetForm() 'Get here your form
frm.OnClick( Tag ) 'Add the function OnClick into your form
End Function
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.