control's code

maxmangion

AWF VIP
Local time
Today, 16:36
Joined
Feb 26, 2003
Messages
2,805
when you move a control in a form from one page to another of a tab control it seems that the control loses the link between any code associated to it. For example if i had some code associated to the onNotInList event of a combo, if i move this combo it seems that the code does not work anymore, however, if going to the control property and try to go to the event and select the code builder, you will see that the code is still there, and from there on the code will work as usual.

Any thoughts why this happen ?

Thanks
 
thanks for the reply. Basically, if i click on the event in question of the control, and then select the code builder, when i get into the vba editor, as i said i will find the code still there, so when i exit the editor, i will get the usual [Event Procedure] next to the event in question ... so to be honest, i did not cut/paste the code and the control returned to work as normal.

However, is it still ideal to copy/paste the code again, rather than simply doing it the above way?

Thank You
 

Users who are viewing this thread

Back
Top Bottom