loosing "[event procedure]" in properties when cutting and pasting controls

J

Jesper Fjølner

I've experienced that if I have some controls with underlying code, and I
cut and paste those controls to ex. a tab-control (or the other way) - The
phrase "[event procedure]" in the controls' property sheet dissappears. The
code itself remains in the module, but I have to figure out what events had
code and add back the word: [event procedure] in the property sheet for it
to work again. It's not a big problem, but kind of annoying.
Is it the same for everyone else? is there a way to avoid it?
 
J

Jeff Conrad

in message:
I've experienced that if I have some controls with underlying code, and I
cut and paste those controls to ex. a tab-control (or the other way) - The
phrase "[event procedure]" in the controls' property sheet disappears. The
code itself remains in the module, but I have to figure out what events had
code and add back the word: [event procedure] in the property sheet for it
to work again. It's not a big problem, but kind of annoying.
Is it the same for everyone else? is there a way to avoid it?

A pain yes, but I have found no way around it myself.
I usually write down which controls I'm cutting and
pasting first.

:-(
 
K

Klatuu

Interesting that you are getting the code in the copy. Is it in the Form
module, or a procedure module? The reason I asked, is that I tried to copy a
contol, and the code to not come with it. I checked Access Help and it
explicitly says that Event Procedures are not copies with a control. I am
AC2000, what version are you on?
 
J

Jesper Fjølner

I believe the OP was talking about cutting and pasting a control within
the
same form/report.

That's correct, I meant within the same form.
Thanks for your comments. I'll continue to work around it :)
 
Top