P
Pete G
I have created a popup menu that shows when I click a text box in my form.
The menu works great. I can put code in the onAction property that will
actually work. For example if I manually enter "=MsgBox("Wow")" (without
quotes around the outside or if I use code in VBA to fill in the OnAction
property:
..OnAction = "=MsgBox(""Wow!"")"
everything works fine.
What I want to do is call a procedure from onAction.
I have found numerous examples online that state if I simply type a
procedure name in onAction, the button click nf the menu item will run my
procedure.
No luck doing that. Nothing happens. No errors, nothing.
I know my procedure works because if I set up a textbox and put my procedure
in the click event for the button all is well.
I'm sure I'm missing something very simple here. My sense is that Access
can't find my procedure or some syntax in OnAction isn't quite right.
Any help?
Thanks,
Pete
The menu works great. I can put code in the onAction property that will
actually work. For example if I manually enter "=MsgBox("Wow")" (without
quotes around the outside or if I use code in VBA to fill in the OnAction
property:
..OnAction = "=MsgBox(""Wow!"")"
everything works fine.
What I want to do is call a procedure from onAction.
I have found numerous examples online that state if I simply type a
procedure name in onAction, the button click nf the menu item will run my
procedure.
No luck doing that. Nothing happens. No errors, nothing.
I know my procedure works because if I set up a textbox and put my procedure
in the click event for the button all is well.
I'm sure I'm missing something very simple here. My sense is that Access
can't find my procedure or some syntax in OnAction isn't quite right.
Any help?
Thanks,
Pete