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

  • Thread starter Thread starter Jesper Fjølner
  • Start date Start date
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?
 
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.

:-(
 
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?
 
Klatuu said:
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?

I believe the OP was talking about cutting and pasting a control within the
same form/report. In that case the code is still there but the property
[Event Procedure] is lost. You're correct that if you copy a control from
one container into another that the code does not come along.
 
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 :-)
 
Back
Top