Hide page on tab control

  • Thread starter Thread starter Martin
  • Start date Start date
M

Martin

Hello,

Is there any way to hide a page on a tab control based on what the user
selects from a drop down box?

Thanks in advance

Martin
 
You can use the following syntax to hide a page...

Me.TabControl.Pages(0).Visible = False

The index (0) of the pages starts at 0, you will need to enter the correct
number for the position of the tab. Put that inside an If/Then condition
that checks the status of your dropdown in it's AfterUpdate event. You will
want to include this in the Forms Current even as well so it's toggled if the
record changes.



hth
--
Jack Leach
www.tristatemachine.com

"I haven''t failed, I''ve found ten thousand ways that don''t work."
-Thomas Edison (1847-1931)
 
Back
Top