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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Enable/Diable Form Objects with a Checkbox

Status
Not open for further replies.

mrfritz44

MIS
Nov 21, 2003
75
US
I have a checkbox on a form that sits next to a select list. When tha page loads, I want the seletc list to be disabled. When I check the checkbox, I want the select list to become enabled. When I uncheck the checkbox, I want the select list to become disabled again.

What steps do I need to d this? I have portions in place, but I'm obviously missing something since it still does not work.

Any help would be greatly appreciated.

Fritz
 
in the onOpen event of the form, place a lbx.enabled=false statement

and in the onClick event of the checkbox, place a if clause that tests the results of the checkbox, and enables the lbx accordingly

lbx.enabled = chkBx

--------------------
Procrastinate Now!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top