Adodc1.RecordSource  =    "select  *  from  box  where 1=1 "  & Trim(ss)& "and  isnull(返回日期)  "  &  "and  DateDiff(day,  交接日期,  today)"  & "<=15"

解决方案 »

  1.   

    antshome老兄,照你那样不对,提示框显示“参数不足,期待是2”
      

  2.   

    Adodc1.RecordSource  =    "select  *  from  box  where 1=1 "  & Trim(ss)& "and  返回日期 is null  "  &  "and  DateDiff(day,  交接日期,  today)"  & "<=15"isnull函数不是判断是否为null,而是在列为null的时候替换成某表达式
    isnull(col,string)
      

  3.   

    返回日期 is null  
    not 
    返回日期 isnull  
      

  4.   

    建议将 表名BOX 该为其他名称试一试
      

  5.   

    表名box我在另一个查询里用了的阿,没问题阿