getting code on subform to run before main form

GezB

New member
Local time
Today, 04:30
Joined
Jun 27, 2002
Messages
5
Hello,

Can anyone help me with this problem?

I Have a form with a subform where I want some code to run after exiting a control on the subform. However if I exit the control by clicking on a command button on the main form the on_click procedure seems to run before the on_exit procedure for the control!
How do I force the on_exit procedure to run first?

Gez
 
Convert your on_exit event to a function in a standard module. Call it from either the on exit event of the control on yr. subform or make a call to it from the first line in the command button's code.
 
Thanks,

I will give this a try today.

Gez
 

Users who are viewing this thread

Back
Top Bottom