M
magicdds-
I am having trouble changing the enable property of a tab control to NO.
I have a command button with the on click property running the following code:
Me.TabCtl73.Pages(0).Enabled = False
When I click on page 0, the text boxes are disabled. But this is not what I
am looking to accomplish.
What I want to do is click on the command button and prevent the user from
being able to navigate away from the current page.
I tried
Me.TabCtl73.Enabled = False
but got an error message "You can't disable a control while it has the focus"
I then tried:
Me!SubformName.SetFocus
Me.TabCtl73.Enabled = False
and I got the same error message.
Is there a way to, with certain conditions being met on the page that the
user is on, disabling the tabs at the top of the page, so the user cannot
move from that page, until he satisfies the conditions to allow him to move
to other pages.
Thanks
Mark
I have a command button with the on click property running the following code:
Me.TabCtl73.Pages(0).Enabled = False
When I click on page 0, the text boxes are disabled. But this is not what I
am looking to accomplish.
What I want to do is click on the command button and prevent the user from
being able to navigate away from the current page.
I tried
Me.TabCtl73.Enabled = False
but got an error message "You can't disable a control while it has the focus"
I then tried:
Me!SubformName.SetFocus
Me.TabCtl73.Enabled = False
and I got the same error message.
Is there a way to, with certain conditions being met on the page that the
user is on, disabling the tabs at the top of the page, so the user cannot
move from that page, until he satisfies the conditions to allow him to move
to other pages.
Thanks
Mark