I am using Tab control in Access and I have made one tab invisible by selecting its Property Visible=false.
Now when the button is clicked then I want to make that tab visible using following line of code. Here tbmain is the name of tab control.
But I'm getting following error message:
runtime error 2467, The expression you entered refers to an object that is closed or doesn't exist.
ANy help will be much appreciated.
Thanks
Now when the button is clicked then I want to make that tab visible using following line of code. Here tbmain is the name of tab control.
Code:
Me.tbmain.Pages(2).Visible = True
But I'm getting following error message:
runtime error 2467, The expression you entered refers to an object that is closed or doesn't exist.
ANy help will be much appreciated.
Thanks