Enable Control according to Check Box

F

fflei

Hello.....

Does anyone know how to make a control 'enabled' only if a particular check
box is checked? Am working in Access 2002

Warning: newcomer, struggling with language, syntax etc!

Thank you,

Fflei
 
D

Dan Artuso

Hi,
You can use something like this:
Me.yourControl.Enabled = Me.yourCheckbox

Substitue your control names.
You can place this code in the form's Current event
or the checkbox's AfterUpdate (or both) event depending
on when you want it run.
 
R

Rick Brandt

fflei said:
Hello.....

Does anyone know how to make a control 'enabled' only if a particular check
box is checked? Am working in Access 2002

Me!ControlName.Enabled = Me!CheckBoxName

Put that code in whatever events you need. Typically you would need it in the
AfterUpdate of the CheckBox and in the OnCurrent event of the form.
 
F

fflei

Brilliant!! Thank you so much!

Fflei

Rick Brandt said:
Me!ControlName.Enabled = Me!CheckBoxName

Put that code in whatever events you need. Typically you would need it in the
AfterUpdate of the CheckBox and in the OnCurrent event of the form.
 
F

fflei

Thank you!

Fflei

Dan Artuso said:
Hi,
You can use something like this:
Me.yourControl.Enabled = Me.yourCheckbox

Substitue your control names.
You can place this code in the form's Current event
or the checkbox's AfterUpdate (or both) event depending
on when you want it run.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top