OK guys, here's the situation:
I have a main form - FormA
I have a sub form on FormA - SubFormA
I have a shortcut (ie. right click) menu on SubFormA - one of the items is "Edit"
I have written a bit of code that should run when "Edit" is selected.
Here's the question:
How do I pass the name of the current subform (in this case SubFormA) to the function? I would know how to do it if it were on a button/other control (ie. me.form.name), but how can you pass the form name to a macro that contains a "RunCode" item?