G
Guest
I would like create a command button that
1. opens up a form
2. keeps one page visible
3. hides the remaining pages.
Yet my code seems to fail on the me.tabCtl1.pages(1).visible=true part. Any
thoughts?
Private Sub Command94_Click()
DoCmd.OpenForm "frmMain", acNormal
Me.TabCtl1.Pages(1).Visible = True
Me.TabCtl1.Pages(2).Visible = False
Me.TabCtl1.Pages(3).Visible = False
End Sub
1. opens up a form
2. keeps one page visible
3. hides the remaining pages.
Yet my code seems to fail on the me.tabCtl1.pages(1).visible=true part. Any
thoughts?
Private Sub Command94_Click()
DoCmd.OpenForm "frmMain", acNormal
Me.TabCtl1.Pages(1).Visible = True
Me.TabCtl1.Pages(2).Visible = False
Me.TabCtl1.Pages(3).Visible = False
End Sub