Code not working ? After I created a Tab Control and Cut and Paste the controls to each tab.

A

acs68

Hi all,

I was noticing that my form was beginning to get cluttered so I decided to
create a Tab Ctrl and move all the controls / buttons etc to the pages.

I basically created the page with two tabs, renamed the tabs and cut and
pasted the controls and buttons etc to it.

Now for some reason the code that is attached to buttons and lstboxes etc
doesn't seem to execute.

Is there something I need to do ?

cheers,

Adam
 
A

acs68

Further on this,

if I create a new button and copy and paste the code , the new button works
fine.
 
A

Allen Browne

The code has become disconnected from the controls.

Open the form in design view.
Open the Properties box.
On the Event tab, you need to set the properties back to:
[Event Procedure]
 
A

acs68

Thanks Allen,

that was it :)

cheers


Allen Browne said:
The code has become disconnected from the controls.

Open the form in design view.
Open the Properties box.
On the Event tab, you need to set the properties back to:
[Event Procedure]

--
Allen Browne - Microsoft MVP. Perth, Western Australia.

Reply to group, rather than allenbrowne at mvps dot org.

acs68 said:
Further on this,

if I create a new button and copy and paste the code , the new button
works
fine.
 

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