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!

access 2003 how do I determine the control 1

Status
Not open for further replies.

ProgramError

Programmer
Mar 2, 2005
1,027
GB
Hi all

If a sub is call in the example below how can I determine the name of the the control which called the sub eg in this case cboRoom is the name of the control.

Private Sub cboRoom_click()
.....
end sub
I want to be able to use the name of the control to call another generic proceedure and need to determine which control called it.

Thanks


Ian Mayor (UK)
Program Error
Programming is 1% coding, 50% error checking and 49% sweat as your application bombs out in front of the client.
 
Have a look at the Screen.ActiveControl and Screen.PreviousControl objects.

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

Part and Inventory Search

Sponsor

Back
Top