Residual code on new event create

G

Guest

I created a new command button, went to the event tab, selected On-click, and
created a new event procedure. When VB editor opened up, the code from the
LAST button I dealt with was displayed. Why is that? Shouldnt' it be a
blank event on a brand new control?
 
M

Marshall Barton

Traci said:
I created a new command button, went to the event tab, selected On-click, and
created a new event procedure. When VB editor opened up, the code from the
LAST button I dealt with was displayed. Why is that? Shouldnt' it be a
blank event on a brand new control?


The code is "connected" to the control by the name of the
control.

Code behind a control is not removed when the control is
deleted.

If that's not you situation, I would start to suspect some
kind of corruption.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top