Forcing an Event

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?
 
S

Stefan Hoffmann

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 <--
 
S

Steve S

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top