Applecore Pages on Microsoft Access

Synchronizing two Tab Controls

If you have two tab controls on a form, and you wish to keep them synchronized (i.e. as the first tab control moves from the first to second page, so does the second tab control), you will need to have a little bit of code in the OnChange event for each tab control:

Private Sub tab1_OnChange()
    Me!tab2=Me!tab1
End Sub
 
Private Sub tab2_OnChange()
    Me!tab1=Me!tab2
End Sub

Top

 


HOME | NEW | TABLES | QUERIES | FORMS | REPORTS | GENERAL | API | DOWNLOADS | TUTORIAL | RESOURCES
E-MAIL
Copyright & Disclaimer

 

Last modified at 06/06/2006 14:54:53