J
jschping
Hi,
I have a tab control on my main form, and each tab has a separate subform
inside it. Each of those subforms contains a its own subforms.
I have a combo box in the main form that selects a record. All of the
subforms are set to filter based on that choice.
Each subform has some formatting code that needs to run each time the user
changes the selection from the combo box. I only want it to run once to
reformat the subform based on its new filter.
Which event should I use to place the code? I am currently using the On
Current event for the subforms. But I think it runs twice. (I had placed a
message box to see when it ran, and the msgbox came up twice!!) I don't want
to waste time since it takes a little to run the code.
Thanks!
John Schping
I have a tab control on my main form, and each tab has a separate subform
inside it. Each of those subforms contains a its own subforms.
I have a combo box in the main form that selects a record. All of the
subforms are set to filter based on that choice.
Each subform has some formatting code that needs to run each time the user
changes the selection from the combo box. I only want it to run once to
reformat the subform based on its new filter.
Which event should I use to place the code? I am currently using the On
Current event for the subforms. But I think it runs twice. (I had placed a
message box to see when it ran, and the msgbox came up twice!!) I don't want
to waste time since it takes a little to run the code.
Thanks!
John Schping