那就用
if option1=ture then
sql=" update table set da='" & OPTION1.VALUE & "' where idd=123"
else
sql=" update table set da='" & OPTION2.VALUE & "' where idd=123"
end if
if option1=ture then
sql=" update table set da='" & OPTION1.VALUE & "' where idd=123"
else
sql=" update table set da='" & OPTION2.VALUE & "' where idd=123"
end if
option1(0)代表错
option1(1)代表对
那样您只要存Index号就可以了
按你说那样的话,我在设计表的时候就应该把“答案”字段做成BIT型了?
byte,integer都行