In a tab control, a tab contains a page, but it is not actually part of the page itself. Therefore, the Click event of a page occurs when you click on the body of page, but it does not occur when you click the corresponding tab of the page. However, the Change event occurs every time you click a different tab. You can then use the Select Case statement to direct the flow of your code so that it depends on the index of the current page. The Value property of a tab control returns the index of the current page.
NOTE: This article explains a technique demonstrated in the sample file, FrmSmp00.mdb. For information about how to obtain this sample file, please see the following article in the Microsoft Knowledge Base:
233324 Microsoft Access 2000 Sample Forms Database Available in Download Center