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

Mulitple After Updates Using the same code

Status
Not open for further replies.

wxkeep

Programmer
Jul 5, 2005
57
US
I have about a dozen textboxes on my form - each with a

Private Sub txtBox1_AfterUpdate()

runFilter

End Sub


Where runFilter is a sub that I developed that checks the status of all the textboxes to build a filter. Here's my question, is there an easier way for each of these controls to reference the runFilter sub without having to code for each one like i've done?
 
You can make it a function, then in design view, select all controls where you wish it to work, open the properties dialog, find the after udpate event property and paste

[tt]=runfilter()[/tt]

(in the property, not code)

Roy-Vidar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top