shortcut menu

  • Thread starter Thread starter Souris
  • Start date Start date
S

Souris

I wanted to create shortcut menu for user to right click instead of click a
button.

I just noticed that the shortcut menu need to call a public function in the
module and the public function must call a public procesdure in the form. My
click event is private.

The shortcut menu must call public function in the module and call public
procedure on the form and my public procedure call the event.


It seems the shortcut menu needs call 3 level down.

Are there any easier way to do this?

Your information is great appreciated,
 
Souris said:
I wanted to create shortcut menu for user to right click instead of click a
button.

I just noticed that the shortcut menu need to call a public function in
the
module and the public function must call a public procedure in the form.
My
click event is private.

Incorrect. You can simply place the name of a public function in the menus
"on-action"

If that public function exists in the form...then it will be run. There is
NOT a need to use a standard code module, and placing your code in a the
forms module code is USUALLY where the code belongs if the code is for THAT
particular form.

just remember to NOT include a forms qualifier in the code.

Just place in the on-action setting of the menu:

=NameOfFunction()

Then, in the form code module go:

Public Function NameOfFunction

bla bla bal....
It seems the shortcut menu needs call 3 level down.

Where did you read this???...it is wrong information....
 
Back
Top