Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

passing selected textbox through popup menu

Status
Not open for further replies.

sikyu

Programmer
Jul 14, 2007
3
US
In access, I have a form that is a custom calendar, with dates along the y axis, and locations along the x axis.

I dynamically generate textboxes and fill them with the name of the person who has a certain location at a certain date.

When I rightclick on a textbox, i have a popupmenu (through the custom toolbar options). Is it possible to pass the value of the textbox i selected to the function of the popupmenu?

Or would it be better to make a custom popupmenu in vba and just use the on_right_click event? (although that would mean setting the on_right_click event for every box and it easily generates 500 boxes)
 
You may consider the ActiveControl or PreviousControl properties of the Screen object.

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top