The Click event of a tabbed page refers to the clicking on the actual page, what you would think of as the "background" of the page, not to the tab at the top that is used to switch from page to page. To accompish what you want to do, requires a little diddling!
In Design View Click on Page 30 and place a textbox on it; name it DummyTextBox.
Goto Properties - Events then click to the right of the On Got Focus event and select Code Builder. When the appropriate sub comes up place this code in it
MsgBox "Page30 was clicked" so that it looks like this:
- Private Sub DummyTextBox_GotFocus()
-
MsgBox "Page30 was clicked"
-
End Sub
Now go back to Design View and click on Page30 to select it.
Goto View - Tab Order and move DummyTextBox so that it is the first control to receive focus on the page. Click
OK.
Select the DummyTextBox control and shrink it as small as possible.
Run the form and click on Page30. The messagebox should popup with the message "Page30 was clicked" showing.
Now you can go back into the VBE and replace
MsgBox "Page30 was clicked"
with whatever code you want to run when the page is clicked.
Linq