Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

visible property

Status
Not open for further replies.

Parmb

Technical User
Dec 17, 2001
89
GB
Hi must sound like a pain teh amount of questions i got. anyway, the prob is as follows

i've got a form with a tab contol, within one of the tabs ive 2 txt boxes and a check box. i want is so that when the user clicks the check box the text boxes become visible.

so i tried to set the properties of the txt box as visibe = no in the first place - so fine the form does not show the txt boxes .

i placed the following code behind the check box

Private Sub Network_Card_Click()
Form_Computer3.IP_Address.Visible = yes

but it doesnt work - cant think of the logic why it doe not work - any help????

Thanks Parm

End Sub
 
Parmb, try this instead

Private Sub Network_Card_Click()
if me!Network_Card = true then
me!IP_Address.Visible = true
else
me!IP_Address.Visible = false
end if
end sub

You may also need the same code in your on_current event.
Maq B-)
<insert witty signature here>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top