Event Code not Working on Tabbed form

Tupacmoche

Registered User.
Local time
Today, 17:29
Joined
Apr 28, 2008
Messages
291
Hi Form Masters,

In order to better organize data entry into more logical chunks, I'm converting several forms into a tabbed form. The existing form works fine but when, I move the controls into the first tab the event code is no longer available for the various controls that, I have moved over. What do, I do to keep the event code from disappearing when, I copy a text control over? :confused:
 
Yes, when you cut and paste a control from a form onto a tab page, "[Event Procedure]" is erased from the OnEvent property. To correct this, after pasting, select the control in design view, open the property sheet, switch to the Event tab, and re-add that string to the events you want to fire.
For instance, if you copied a textbox, and the code on your form handles the Change event of that control, find the OnChange property in the property sheet, and notice it is now blank. Double click the empty field, and notice that the text "[Event Procedure]" is automatically entered as the new property value.
Now your event handler will work again.
hth
Mark
 

Users who are viewing this thread

Back
Top Bottom