Disabling a text box until a tick box is checked?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi there,

i have a txt box called:

cw_log_id

I want this to be disabled (greyed out), unless the tick box above it called:

refered

is checked. Is this possible? If so how?

many thanks for your help,

Neil
 
Neil,

You need to put this line of code:

Me.cw_log_id.Enabled = Me.refered

in the checkbox's On Change event, so the textbox is enabled/disabled as
the user checks or unchecks.
If the checkbox is bound to a table field, it would be a good idea to
put the same code in the form's On Current event, so it will do the same
as the user browwses through records, according to each record's setting.

HTH,
Nikos
 
Back
Top