[AccessD] Detached event procedures

Gustav Brock gustav at cactus.dk
Sat Mar 7 08:39:21 CST 2015


?Hi all


If you on a form decide to move some controls into a tab control, you normally do a cut and paste of these controls - from the form into a page of the tab control.

Then all the events of the controls get cleared; the [Event Procedure] markings are gone and the code behind is detached though still present.


To restore these settings, open the code module of the form:


1. Mark all code with Ctrl+A

2. Cut it away with Ctrl-X

3. Select menu Debug, Compile

4. Paste all the code back into the empty module with Ctrl-V

5. Select Debug, Compile


Now your event procedures are hooked up again.


I knew of this little trick but had forgotten the details and found it here after much searching:


http://bytes.com/topic/access/answers/632851-detached-event-procedures


/gustav





More information about the AccessD mailing list