Public Sub ListPages()
'Created by Helen Feddema 9-Feb-2010
'Last modified by Helen Feddema 9-Feb-2010
On Error GoTo ErrorHandler
Dim tbc As Access.TabControl
Dim pge As Access.Page
Dim strPage As String
Set tbc = Forms![frmCompanyInfo]![tabInfo]
For Each pge In tbc.Pages
pge.Visible = False
Next pge
ErrorHandlerExit:
Exit Sub
ErrorHandler:
MsgBox "Error No: " & Err.Number _
& " in ListPages procedure" _
& "; Description: " & Err.Description
Resume ErrorHandlerExit
End Sub
|