Hi All,
I'm a bit stuck with how to go about disabling tabs with in a tab page control in a form.
The form which the tab page control sits in is called 'frmDataEntry' and the tab control itself is called 'tab1'.
Now what I want is for the user to access data from a table through sub form 'frmsubIndicators' in form 'frmAdministration'. The subform is linked to data in a table called 'tblStdIndicators'. This table has two fields. The first is the name of the indicators (This is exactly the same as the tab page names) and the second is a checkbox which I want to use to enable and disable the tab pages dependent on which indicators are checked as enabled.
I was hoping to use the OnOpen event of the form with the table control to disable/enable tabs based on the checkbox selections in the Admin form. I imagine some sort of a loop that looks up the indicator name and checks if the enable check box is true or false and then disables/enables depending on the selection.
I'm a bit lost on how to go about this. Any help would be much appreciated.
Cheers
I'm a bit stuck with how to go about disabling tabs with in a tab page control in a form.
The form which the tab page control sits in is called 'frmDataEntry' and the tab control itself is called 'tab1'.
Now what I want is for the user to access data from a table through sub form 'frmsubIndicators' in form 'frmAdministration'. The subform is linked to data in a table called 'tblStdIndicators'. This table has two fields. The first is the name of the indicators (This is exactly the same as the tab page names) and the second is a checkbox which I want to use to enable and disable the tab pages dependent on which indicators are checked as enabled.
I was hoping to use the OnOpen event of the form with the table control to disable/enable tabs based on the checkbox selections in the Admin form. I imagine some sort of a loop that looks up the indicator name and checks if the enable check box is true or false and then disables/enables depending on the selection.
I'm a bit lost on how to go about this. Any help would be much appreciated.
Cheers