Attach custom popup menu to runtime query datasheet?

T

TC

Hi folks

I have a form that creates a query at runtime & displays the query datasheet
with OpenQuery.

I have a custom popup menu that I would like to attach to the right-click
action of that query datasheet.

I can display the popup manually using the .PopUp method, but I can't see
how to attach it to the right-click event of the datasheet (at runtime).

The queries must be created at runtime, because they implement arbitrary,
user-defined adhoc reports.

The db is an MDE, with all the standard startup options Off, including the
one that lets the user access the standard built-in right-click menus:
AllowPopupMenus or whatever it's called.

Any advice on how I can attach the existing popup menu, to the right-click
action of a query datasheet that is created at runtime?

TIA
TC
 
Top