Hi
I have a form that there is 3 checkbox in it.
one or two or all 3 can be selected.
i want to pass the selected check box to the sql table.
the problemis when I just choose 1 checkbox then it doesnt go.
if i just choose year0 then it wont pass
'year0
If chk_year0 = True And chk_year1 = False And chk_year_2 = False Then
rst.Fields("tar get_spb_year_li st") = year0.Caption
End If
but if i chose year0 and year1 then it will pass.
'year 0 and year 1
If chk_year0 = True And chk_year1 = True And chk_year_2 = False Then
rst.Fields("tar get_spb_year_li st") = year0.Caption & " " & year1.Caption
End If
i would apprecaite any help,
thanks
I have a form that there is 3 checkbox in it.
one or two or all 3 can be selected.
i want to pass the selected check box to the sql table.
the problemis when I just choose 1 checkbox then it doesnt go.
if i just choose year0 then it wont pass
'year0
If chk_year0 = True And chk_year1 = False And chk_year_2 = False Then
rst.Fields("tar get_spb_year_li st") = year0.Caption
End If
but if i chose year0 and year1 then it will pass.
'year 0 and year 1
If chk_year0 = True And chk_year1 = True And chk_year_2 = False Then
rst.Fields("tar get_spb_year_li st") = year0.Caption & " " & year1.Caption
End If
i would apprecaite any help,
thanks
Comment