Disable Text Boxes

  • Thread starter Thread starter Nick1966
  • Start date Start date
N

Nick1966

Hi

I have a form on which to enter data, but to improve data entry accuracy I
want to disable some fields depending on the values entered in other
fields.For example the first field is ComboBoxA if Option1 is chosen then
TextBox1 is available for data input, if Option2 is chosen then TextBox1 is
not available for data entry.

I hope this is clear.

Thanks

Nick
 
On the after update event of the combo insert the code
If Me.ComboName = Option1 Then
me.TextBox1.enabled=True
else
me.TextBox1.enabled=False
End if
 

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

Similar Threads

check box adding records to table 4
record fields 10
Switchboard question! 4
Dynamic field 1
Help with query and subform 1
Wildcard Usage in Combo Box Programming 2
Combo Box 1
SetFocus problem 7

Back
Top