Forcing an Event

  • Thread starter Thread starter Steve S
  • Start date Start date
S

Steve S

I have a form with a subform that has several ComboBoxes and Textboxes. When
I update (select a value) in comboA the code in thenAfterUpdate event sets
values for 6 other controls. Works fine.

Problem is I need to have the form open and all controls set to a 'default'
value. This default value differs depending on several variables I am
currently using 7 rather complex assignment statements to populate the fields.

Is there a way to just set the value for just comboA (me.comboA = value) and
force/trick/simulate that the AfterUpdate event for comboA has occurred?
 
hi Steve,

Steve said:
Is there a way to just set the value for just comboA (me.comboA = value) and
force/trick/simulate that the AfterUpdate event for comboA has occurred?
Simply use

Call comboA_AfterUpdate

You don't need the Call statement, but I use it when calling object event.


mfG
--> stefan <--
 
Thanks for the quick reply and I am sorry to waste your time on such a simple
issue. I have used the call of a form module many times in the past but just
could not see it today. thanks again

Thanks again
 
Back
Top