R
Ryan W
I have 4 check boxes on a form along with a combo box. What I want is to
happen is if only one check box is checked a certain row source appears. But
if there is two or more check boxes checked another row source appears in the
combo box. Not sure what the code would look like.
For example: I have - Chk1, Chk2, Chk3, Chk4, Cbo1.
If only one of the chk boxes are checked I want the row source for cbo1 to be
"Hello"
elseif there are two or more chk boxes checked I want the row source to be
"Goodbye"
this is what I have:
if chk1 and chk2 = true or _
chk1 and chk2 and chk3 = true or _
chk1 and chk2 and chk3 and chk4 = true then
cbo1.rowsoure = "Hello"
else
cbo1rowsource = "Goodbye"
end if
Thanks for your help,
happen is if only one check box is checked a certain row source appears. But
if there is two or more check boxes checked another row source appears in the
combo box. Not sure what the code would look like.
For example: I have - Chk1, Chk2, Chk3, Chk4, Cbo1.
If only one of the chk boxes are checked I want the row source for cbo1 to be
"Hello"
elseif there are two or more chk boxes checked I want the row source to be
"Goodbye"
this is what I have:
if chk1 and chk2 = true or _
chk1 and chk2 and chk3 = true or _
chk1 and chk2 and chk3 and chk4 = true then
cbo1.rowsoure = "Hello"
else
cbo1rowsource = "Goodbye"
end if
Thanks for your help,