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!

event firing

Status
Not open for further replies.

rostulya

Technical User
Jan 7, 2004
15
0
0
US
can't find it anywhere.
in code, i need to fire an afterupdate event for a combox on another form. how do i do it?

thanks in advance
 
Is this another form a subform ?

Hope This Help, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
 
i'm not sure what you mean by that. i'm need to use this code in onClose event of modal/popup form.
 
OK, lets say you have 2 forms, frmA and frmB
you have a combo called cbo on frmB that has an AfterUpdate event that you wish to fire when frmA closes.

On frmB view the code behind the afterUpdate event and change Private Sub cbo_AfterUpdate to Public Sub cbo_AfterUpdate

Then on the OnClose event on frmA add
Call Forms!frmB.cboAfterUpdate()

That should fire it.

hth

Ben





----------------------------------------------
Ben O'Hara "Where are all the stupid people from...
...And how'd they get so dumb?"
rockband.gif
NoFX-The Decline
----------------------------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top