Private Sub tabSettings_Change()
'Created by Helen Feddema 19-Nov-2009
'Last modified by Helen Feddema 19-Nov-2009
On Error GoTo ErrorHandler
Dim tbc As Access.TabControl
Dim pge As Access.Page
Dim strPage As String
Set tbc = Me![tabSettings]
Set pge = tbc.Pages(tbc.Value)
strPage = pge.Name
Select Case strPage
Case "pgeOne"
'Your code here
Case "pgeTwo"
'Your code here
Case "pgeThree"
'Your code here
End Select
ErrorHandlerExit:
Exit Sub
ErrorHandler:
MsgBox "Error No: " & Err.Number _
& " in tabSettings_Change procedure" _
& "; Description: " & Err.Description
Resume ErrorHandlerExit
End Sub
|