Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms / September 2007

Tip: Looking for answers? Try searching our database.

Hiding/Unhiding a text box

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Speeg - 21 Sep 2007 17:46 GMT
I have a check box.  When I click it making it True/Yes I want a label I have
set as not visible to become visible.  Should be simple but isn't!
Allen Browne - 21 Sep 2007 17:58 GMT
Replace the label with a text box bound to an expression like this:
   =IIf([MyYN], Null, "Say what")

Use your yes/no field name instead of MyYN

Signature

Allen Browne - Microsoft MVP.  Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

>I have a check box.  When I click it making it True/Yes I want a label I
>have
> set as not visible to become visible.  Should be simple but isn't!
Speeg - 21 Sep 2007 18:06 GMT
Thank you, I will give that a go

> Replace the label with a text box bound to an expression like this:
>     =IIf([MyYN], Null, "Say what")
[quoted text clipped - 4 lines]
> >have
> > set as not visible to become visible.  Should be simple but isn't!
NKTower - 21 Sep 2007 22:34 GMT
The title of the question says Text Box, but the question text says label.
Assuming you really meant label, and that you don't want the user to be able
to edit it, you can do it like

Private Sub chk_Box_Click()
 Me.lbl_ImClicked.Visible = (Me.chk_Box = True)
End Sub

The visibility of the label will follow the status of the check box.

> Thank you, I will give that a go
>
[quoted text clipped - 6 lines]
> > >have
> > > set as not visible to become visible.  Should be simple but isn't!
Speeg - 21 Sep 2007 18:14 GMT
Thanks Allen it works perfectly

> Replace the label with a text box bound to an expression like this:
>     =IIf([MyYN], Null, "Say what")
[quoted text clipped - 4 lines]
> >have
> > set as not visible to become visible.  Should be simple but isn't!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.