delphi + access 
      select * from 表名 where  时间 = 当前日期    思路有了  报错   新手求助
      
  
    求正确的解答。。    
    

解决方案 »

  1.   

    select * from 表名 where 时间 between #当前日期# and #当前日期+1#(时间字段的类型要是时间类型)
      

  2.   

    access中支持now函数

    select * from a where fielddate=now
      

  3.   

    ++
    或是自己在程序里拼接字符串也可以strSql:='select * from 表名 where 时间 between #'+FormatDateTime('yyyy-mm-dd',now)+'# and #'+FormatDateTime('yyyy-mm-dd',now+1)+'#'