Visibility based on selection...

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a form for entering company assets. I have a a combo box where you
select the type of asset (Computer, Cell phone, Printer...). I also have
other fields like "I.P. Address" and "Telephone Number" which i have set to
be invisible. I want these fields to become visible only if they are
required. ie - select "Computer" and then the "I.P. Address" field becomes
visible. Any suggestions on the code to make this happen?
 
Use the AfterUpdate property of the combobox.

Obviously you can set the visible property control by control however if
there are multiple fields that are always visible / not visible, you might
try putting these in a tab control. This way you can just set the tab control
visible property and the whole group is affected.

If you set the Tab Control style property to ‘none’ it doesn’t even look
like a tab control.

Works pretty well.
 
Thanks for the helpful suggestion.

Rick Roberts said:
Use the AfterUpdate property of the combobox.

Obviously you can set the visible property control by control however if
there are multiple fields that are always visible / not visible, you might
try putting these in a tab control. This way you can just set the tab control
visible property and the whole group is affected.

If you set the Tab Control style property to ‘none’ it doesn’t even look
like a tab control.

Works pretty well.
 
Back
Top