SQL 是正确的,没什么问题啊,你的问题是什么???

解决方案 »

  1.   

    select * from tblinput where datediff('d',Indate,Getdate())=0
      

  2.   

    把SQL语句放到分析器里看看有没有结果,如果有,则说明可能是其他部分有错,或者是设置了SET NOCOUNT ON
      

  3.   

    "select * from tblinput where Indate='" & Date & "'"
      

  4.   

    ACCESS 使用:
    "select * from tblinput where Indate=#" & Date & "#"
      

  5.   

    先放进分析器执行一遍,确定SQL没问题,那么估计问题出在了新建的Command对象上,我没有用过数据环境,不知道Command对象可以不可以返回记录集,反正ADODB.Recordset.Command就不能返回值,ADODB.Recordset.Recordset就可以!
      

  6.   

    相信一个数据字段中应该是一个日期中的时刻,而不是某一天,更正如下:select * from tblinput where Indate between date and date+1By Morn