Tab control in form

chappy68

Registered User.
Local time
Today, 13:15
Joined
Aug 15, 2011
Messages
76
I have a tab control in a form with two pages. Page one is the main menu and page two is a search form. When I switch to the search page, I want to run some code to clear any selections from previous searches. I know how to clear the selections with Me.cboName = Null. I tried to enter the code for the search page in the On_Click event but it didn't work.

What am I missing?
 
Have you tried to use a
Code:
MsgBox "test"
command to see if the click event is handled right?
 
You need the Change Event of the Tab Control, not the page.
 
You need the Change Event of the Tab Control, not the page.

Thanks for pushing me in the right direction. I searched the forum and now believe I have my solution. Thanks for the help.

CIIIHAN,
I have not tried the MsgBox to test. I will give that a try.

Thanks for the suggestions.
 
You should try to use MsgBox to debug your code
Then you'll see more quickly where it goes wrong.

good luck!
 
And vbaInet kills two birds with one stone.. :)

Thanks

Debug.Print outputs to the immediate window which can be opened through the editor window select view->immediate window
Msgbox creates a pop-up
right?
 
Three birds :D - breaking the MsgBox character limit too.
 
You done enjoying your self sir? :D

Thanks though
 

Users who are viewing this thread

Back
Top Bottom