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 / New Users / July 2006

Tip: Looking for answers? Try searching our database.

Conditional visibility

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mike Mc1981 - 18 Jul 2006 12:17 GMT
Hi,

I have a text box in a form called "tracking database" and another called
"document hyperlink", how do I design a form so that when tracking database
is set to "no" document hyperlink is invisible and when tracking database is
set to yes it is visible?

Cheers

Mike
Signature

Mike Mc1981

Jeff Boyce - 18 Jul 2006 13:17 GMT
Mike

You could add code behind the control for [tracking database] that evaluates
its contents and sets the visible property of the [document hyperlink]
control.

From a usability standpoint, you might want to consider making the [document
hyperlink] control Enabled/Disabled instead of having it wink in and out of
visibility.

Your code could look something like:

   Me.[document hyperlink].Enabled = (Me.[tracking database] <> "no")

(you did say it was a text control, right?  If it were a Yes/No-type
control/field, you'd need to change that code)

Signature

Regards

Jeff Boyce
Microsoft Office/Access MVP
http://mvp.support.microsoft.com/

Microsoft IT Academy Program Mentor
http://microsoftitacademy.com/

Microsoft Registered Partner
https://partner.microsoft.com/

> Hi,
>
[quoted text clipped - 6 lines]
>
> Mike
 
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.