Check Control if Visible or hidden

A

Abe Katz

Hello All,
How can I check thru code, if a control on the form is visible or it's
hidden?

Thanks in advance
Abe
 
J

John W. Vinson

Hello All,
How can I check thru code, if a control on the form is visible or it's
hidden?

Thanks in advance
Abe

If Forms!yourformname!controlname.Visible = True Then
<it's visible>
Else
<it's hidden>
End If

You can use Me!controlname if the code is on the same form as the control.
 

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