if HTCheck.Checked=true then RSADOQuery.SQL.Add(and 合同签订=);
本想查询合同日期为空的记录,但以上语句无法通过
if HTCheck.Checked=true then RSADOQuery.SQL.Add(and 合同签订 is null);
不知道你是什么数据库,也不知道你是什么表是否允许为空,
你可以看看 and isnull(合同签订)这个,
有些数据库默认是0,
那么你可以把日期类型当作浮点数
and 合同签订=0