I apologize for the confusion. The context menu in this case or even the alternate button click will work directly on a data item in a list box.
An example of that might be a single click will populate the current for with the data of the person click on. So for instance if I clicked on Joe Shmoe in the list box
The first name and last name fields would get the values Joe and Schmoe. As series of fields denoting personal information, comments and also a linked sub form would be populated with the respective information on Joe Schmoe.
This all works fine.
It would be nice if I could create a small context menu when right clicking on Joe Schmoe, to open a corresponding order. This is currently in the dbl click event. Other choices could open other reports on him or even other appropriate forms such as an invoice. All these things are currently done with other buttons and actions, yet the people using the software asked me to create this feature so all the possible functions to be run on this person would be found in a context menu by right clicking on the name of the person, in the list box.
The problem with using the mouse down event is that the value of the list box item that you are clicking on does not update until after the mouse up event. I know that the windows API has far more properties on the mouse click event itself. I was just wondering how you access these properties in Access, pardon the pun.
Best Regards
-Roni
Roni Estein
Roni.Estein@e-drugscanada.com
https://www.e-drugsCanada.com