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
 

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

Back
Top