Hide page on tab control

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
 
J

Jack Leach

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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top