Hi,
Re: Controlling fields in a subform from a combo list value
[vba]
Field names:
cboActivity - this combo box lists the Activity Numbers (i.e 1.1, 1.2, 1.3, 2.1, 2.2, 3.1)
txtStartDate - this date field is an input field
txtEndDate - this date field is an input field
txtQuantity - this text field is an input field
txtStartDepth - this text field is an input field
txtEndDepth - this text field is an input field
[/vba]
Goal / Solution Required:
I would like the subform to lock the last three text fields (txtQuantity, txtStartDepth, txtEndDepth) on load.
<br>I would like to enable these 3 fields for input based on the "cboActivity" value.
The following condition to enable the text fields are:
[vba]
Condition 1:If "cboActivity" starts with a "1", then enable the txtQuantity field,
Condition 2:If "cboActivity" starts with a "2", then enable the txtStartDepth and txtEndDepth field,
Condition 3:If "cboActivity" starts with a "3", then enable the txtQuantity, txtStartDepth and txtEndDepth fields,
[/vba]
Help appreciated.