The tab is a seprate object from the detail section. You will need to
provide code for both click events in order to achieve your desired result.
You can write a single function to be called by each event.
Example:
Sub DoMyCommand()
'Place procedures here
End Sub
Sub Page1_Click()
DoMyCommand
End Sub
Sub Detail_Click()
DoMyCommand
End Sub
Hope this helps. Good luck.