Quantcast
Channel: Access for Developers forum
Viewing all articles
Browse latest Browse all 14673

How to: Hide & Display Tabs with checkboxes

$
0
0

Hello, I'm new to this site and i'm also newer to Access and i hope this will be an easy question for someone to answer.

I have a form with a tab control that has 6 tabs on it and i want the user to be able to use 6 checkboxes so they can control the "view" of the tabs to what they need to enter.
When i switch between different patients the tabs need to change automatically and that's where i'm having trouble.

I have all the tab views set to false and i'm wondering what Event procedure in the checkbox to use to control the tabs. Below is the code i'm using in the checkbox to control the view of one of the tabs. Any help is appreciated! Thank you

Private Sub Check654_Click()
On Error GoTo Check654_Click
If Check654 = True Then
Me.GeneticsTab.Visible = True
ElseIf Check654 = False Then
Me.GeneticsTab.Visible = False
End If

Check654_Click_Exit:
 Exit Sub
 
Check654_Click:
 MsgBox Error$
 Resume Check654_Click_Exit
End Sub


Viewing all articles
Browse latest Browse all 14673

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>