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 / General 1 / October 2005

Tip: Looking for answers? Try searching our database.

Command Button to Unhide Fields

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
sunilkeswani@gmail.com - 30 Oct 2005 08:49 GMT
Hi

How do I make a command button which would make some form fields
visible when clicked? Or maybe those fields could pop up on another
form

Sunil
Bernard Peek - 30 Oct 2005 15:31 GMT
>Hi
>
[quoted text clipped - 3 lines]
>
>Sunil
Try something like this:

sub Showme_Click

ctrl1.visible = not ctrl1.visible
ctrl2.visible = not ctrl2.visible

end sub

Signature

Bernard Peek
London, UK. DBA, Manager, Trainer & Author.

Ted - 30 Oct 2005 20:58 GMT
Sunil:
Here is another option. If the fields need to be visible based upon the
value of a particular field, then you could use code similar to this:

AfterUpdate Event for FieldNameA
If Me!FieldNameA > 500 Then
    Me!FieldNameB.Visible = True
Else
    Me!FieldNameB.Visible = False
End If

I hope this is helpful.
Ted
sunilkeswani@gmail.com - 31 Oct 2005 20:41 GMT
Thanks for the inputs ! This really helps.
 
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.