Renaming a form control

B

bg_ie

Hi,

I have a combo on my form named -

Combo95

I now want to rename it to something more descriptive but when I do so
it stops working correctly. What steps should I follow to do this
correctly?

I've also renamed the function Combo95_AfterUpdate() but where in the
code is this function mapped to this button? Its not in the forms code
document.

Thanks,

Barry.
 
B

Brendan Reynolds

Hi,

I have a combo on my form named -

Combo95

I now want to rename it to something more descriptive but when I do so
it stops working correctly. What steps should I follow to do this
correctly?

I've also renamed the function Combo95_AfterUpdate() but where in the
code is this function mapped to this button? Its not in the forms code
document.

Thanks,

Barry.


After renaming the combo box, rename the event procedure so that the first
part of the name, the part before the underscore, matches the new name of
the combo box. For example, if the new name of your combo box was "MyCombo"
then the name of the event procedure should be "MyCombo_AFterUpdate()".

Now in form design view, select the combo box, and in the Properties window,
in the "Event" tab, select the After Update property and from the drop-down
list select "[Event Procedure]". This should restore the mapping between the
event procedure and the control property.
 
B

bg_ie

I have a combo on my form named -

I now want to rename it to something more descriptive but when I do so
it stops working correctly. What steps should I follow to do this
correctly?
I've also renamed the function Combo95_AfterUpdate() but where in the
code is this function mapped to this button? Its not in the forms code
document.

Barry.

After renaming the combo box, rename the event procedure so that the first
part of the name, the part before the underscore, matches the new name of
the combo box. For example, if the new name of your combo box was "MyCombo"
then the name of the event procedure should be "MyCombo_AFterUpdate()".

Now in form design view, select the combo box, and in the Properties window,
in the "Event" tab, select the After Update property and from the drop-down
list select "[Event Procedure]". This should restore the mapping between the
event procedure and the control property.

Thanks for your help Brendan.
 
Top