Hey all.
Are checkboxes weird with VB Programming?
I have a statement that is like this:
On click event of checkbox
If me.checkbox.value = 1 then
me.text1.locked = false
else
me.text1.value = ""
me.text1.locked = true
end if
Basically, until the checkbox is checked, the user cannot enter information into text1. Once the box is Unchecked, it clears the textbox and locks it.
Seems that the IF statements make it NOT work.
I also use the form current event to check and make sure the checkbox is unchecked (and if it is it locks the text1 textbox.
Anybody have any advice or anything?
Are checkboxes weird with VB Programming?
I have a statement that is like this:
On click event of checkbox
If me.checkbox.value = 1 then
me.text1.locked = false
else
me.text1.value = ""
me.text1.locked = true
end if
Basically, until the checkbox is checked, the user cannot enter information into text1. Once the box is Unchecked, it clears the textbox and locks it.
Seems that the IF statements make it NOT work.
I also use the form current event to check and make sure the checkbox is unchecked (and if it is it locks the text1 textbox.
Anybody have any advice or anything?