判断用户的选择问题?????
strSql="INSERT INTO fktable(ifopition,productsort,othersort,fkcontent,authorname,email,tel,fax)" _
& " VALUES(" & ifopition & ",'" & productsort & "','" & othersort & "','" & fkcontent & "','" & authorname & "','" & email & "','" & tel & "','" & fax & "')"
值是从表单中取得的,其中有几个值是可以为空的,用户可以填也可以不填,
现在问题是:
怎样判断用户有没有填这个值,填了的值就增添到数据库的相关字段中,没有填的值数据库的相关字段就为空值,用什么方法实现????
怎样改写这个sql语句?????