Hello everyone !
I am designing a form on which I have a combo box with values yes/no and depeneding on whetehr it is ye or no, the textbox gets enabled. If the combobox value is yes, the textbox is enabled and if no, then it is not.
For the combo box i have written this code in the onchange event:
if me.combo2 = 1 then
me.textbox.enabled = true
else
me.textbox.enabled = false
end if
Whenever i load the form, a -1 is displayed in the combo box, I dont know why????????????
and the textbox gets disabled for any value i choose in the combo box.
Can anyone help me pleasE?
Thanks.
I am designing a form on which I have a combo box with values yes/no and depeneding on whetehr it is ye or no, the textbox gets enabled. If the combobox value is yes, the textbox is enabled and if no, then it is not.
For the combo box i have written this code in the onchange event:
if me.combo2 = 1 then
me.textbox.enabled = true
else
me.textbox.enabled = false
end if
Whenever i load the form, a -1 is displayed in the combo box, I dont know why????????????
and the textbox gets disabled for any value i choose in the combo box.
Can anyone help me pleasE?
Thanks.