Right-click event?

R

Ryan Langton

I have a form containing User information. In that form are several list
boxes. One of the list boxes contains Items owned by that user. Is there
any way to create a right-click menu that the user can use to interact with
items on that list? For example, perhaps Right-Click->Delete Item or
Right-Click->Re-assign Item (give ownership to another user), etc.

Thanks,
Ryan
 
R

Rick Brandt

Ryan said:
I have a form containing User information. In that form are several
list boxes. One of the list boxes contains Items owned by that user.
Is there any way to create a right-click menu that the user can use
to interact with items on that list? For example, perhaps
Right-Click->Delete Item or Right-Click->Re-assign Item (give
ownership to another user), etc.

Thanks,
Ryan

Sure. That is what shortcut menus are for and Access allows you to not only
create your own shortcut menus, but every form and form control has a
property where you can assign a specific shortcut menu to it.
 
V

Van T. Dinh

Create your own Custom Menu and assign it to the "Shortcut Menu Bar"
Property of the Form. Make sure the "Shortcut Menu" of the Form is set to
Yes / True. Both Properties are in the "Other" tab of the Form's Properties
window.
 
R

Ryan Langton

Custom SHORTCUT menu that is. I figured out how to create a custom toolbar
menu, that isn't helping. Tools -> Customize -> Click Shortcut menus ->
shows me a list of shortcut menus. These are exactly what I need, but just
how exactly do I create my own?? Nothing works.
 
V

Van T. Dinh

Nearly there... Shortcut Menu IS a ToolBar.

1. Tools / Customize ... in the Toolbar tab, click New to create "Custom 1"
Toolbar.

2. While "Custom 2" Toolbar is selected, click the Properties button and
change it to "Pop-up" as a ToolBar can only be used as a Shortcut Menu if it
is pop-up.

3. Add commands to Toolbar as required.

4. Close Customize ...

5. Go back to the Form Design and select the ToolBar "Custom 1" as the
Shortcut Menu Bar for the Form and make sure "Shortcut Menu" Property is set
to Yes / True.


--
HTH
Van T. Dinh
MVP (Access)
 
Top