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 Programming / July 2007

Tip: Looking for answers? Try searching our database.

De-activating a button

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
injanib - 13 Jul 2007 15:20 GMT
How can I have a command button to be deactivated by default and be active
upon clicking another button. And then have it become deactivated again upon
clicking another button (Reset button)?

Let me explain it a little better.

I have a "search" button that filters data. I then have another button
"Report" that generates a report of the search result. Then I have a reset
button that clears the filter. I want the Report button to be deactivated or
grayed out untill the search button is clicked. And then as soon as the
"Reset" button is clicked the "Report" button becomes deactivated again.
Please hit me with your genius ideas. Thanks in advance.
Jeff Boyce - 13 Jul 2007 15:29 GMT
Add something like the following to the Click event of your cmdSearch
button:

   Me!cmdYourReportButton.Enabled = True

Use the =False to disable it again.

Regards

Jeff Boyce
Microsoft Office/Access MVP

> How can I have a command button to be deactivated by default and be active
> upon clicking another button. And then have it become deactivated again
[quoted text clipped - 10 lines]
> "Reset" button is clicked the "Report" button becomes deactivated again.
> Please hit me with your genius ideas. Thanks in advance.
injanib - 13 Jul 2007 20:48 GMT
That was easy!
Awesome.

thanks allot

>Add something like the following to the Click event of your cmdSearch
>button:
[quoted text clipped - 13 lines]
>> "Reset" button is clicked the "Report" button becomes deactivated again.
>> Please hit me with your genius ideas. Thanks in advance.
 
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.