By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,027 Members | 1,261 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,027 IT Pros & Developers. It's quick & easy.

Control events lost after pasting onto tabcontrol

P: n/a
After adding a TabControl to an Access 2000 form during screen
redesign, I found that when cutting and pasting a group of controls
(option groups, option buttons, command buttons, MSFlexGrid) into the
first page of the tab control, no control events were fired by any of
the pasted controls, even though their appearance changed as though
events were being triggered.

I found that new controls defined in the tab page generated events
normally.

Any ideas?
Nov 12 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
If you will check the Properties, you'll find that the Properties of the
copied control do not indicate that there is event code. However, the event
code is still in the Form's module, under the same name. If you have not
renamed the controls, all you have to do is click the down arrow in the
events for which there was/is code, and select "[Event Procedure]". Once you
have restored the indication of the event code, clicking the box with three
dots will take you to the proper code, and the event code will execute when
the event fires.

It's not that the event didn't fire, it's that the event property was no
longer indicating that the code existed.

Larry Linson
Microsoft Access MVP
"Simon Kravis" <si**********@csiro.au> wrote in message
news:40**************************@posting.google.c om...
After adding a TabControl to an Access 2000 form during screen
redesign, I found that when cutting and pasting a group of controls
(option groups, option buttons, command buttons, MSFlexGrid) into the
first page of the tab control, no control events were fired by any of
the pasted controls, even though their appearance changed as though
events were being triggered.

I found that new controls defined in the tab page generated events
normally.

Any ideas?

Nov 12 '05 #2

P: n/a
Larry Linson wrote:
If you will check the Properties, you'll find that the Properties of the
copied control do not indicate that there is event code. However, the event
code is still in the Form's module, under the same name. If you have not
renamed the controls, all you have to do is click the down arrow in the
events for which there was/is code, and select "[Event Procedure]". Once you
have restored the indication of the event code, clicking the box with three
dots will take you to the proper code, and the event code will execute when
the event fires.

It's not that the event didn't fire, it's that the event property was no
longer indicating that the code existed.

A quicker method is to go to the code window and cut and paste the whole
module (press Ctrl+A, Ctrl+X and Ctrl+V) this will restore all event
procedure properties.

--
But why is the Rum gone?
Nov 12 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.