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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to click a control on another form?

Status
Not open for further replies.

dlstapleford

Programmer
Dec 11, 2002
14
0
0
US
How can I click a button on a subform form from a button on the main form? For instance if I click Delete on the main form, I want it to also run the code in the OnClick event for a button located in a subform.
 
The best way to do this is to pull the code from that button's event into a sub in a general module. Then you can call that code from both places.

Hope this helps.

Jeremy =============
Jeremy Wallace
AlphaBet City Dataworks

Take a look at the Developers' section of the site for some helpful fundamentals.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top