shortcut menu

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,
 
A

Albert D. Kallal

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....
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top