I am trying to create a script that will turn on specific comboboxes based on a particular value entered in another combobox on the same page. For example, If the user chooses cbotype = "cut" I only want cbospecies, cbotrees and cbobolts to be enabled(editable) by the user. My remaining cbodbh, cbosticks to be turned off (not enabled). I have very little experience in vbscript so any help would be appreciated. Thanks in advance. This is what I have so far:
Sub MyScript
Dim objPg
Set objPg = layer.Forms("SpeciesForm").Pages("Species")
If objPg.Controls("cbotype".Value="cut" Then objPg.Controls("cbospecies").Enabled=True
objPg.Controls("cbotrees").Enabled=True
objPg.Controls("cbolts").Enabled=True