Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

which evetn to use

Status
Not open for further replies.

alifyag

MIS
Apr 15, 2002
18
US
hi,
i have a combo box and a print command button.
i want the print command button to be disabled when nothing is chosen from the combo box however as as soon as somethign is chosen from the combo box, i want the command button to be enabled.
in which event should i do this.
i am working in vba coding in access
thanks
 
In the form's On Open event disable the command button:

cmdPrint.Enabled = False

In the After Update event of the combo enable the command button:

cmdPrint.Enabled = True

Hope that helps. Larry De Laruelle
ldelaruelle@familychildrenscenter.org

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top