求助:不执行查询的问题
我在按钮的CLICK事件中加入如下代码.
dim str as string
str = "{table1.time}='" & DTPicker1.Value & "'"
and {table1.time}<'" & DTPicker2.Value & "'"
CrystalReport1.ReportFileName = "d:\table1.rpt"
CrystalReport1.SelectionFormula = str
CrystalReport1.Action = 1
结果报表中什么都不显示(也就是未执行查询)
数据库中time字段为DATATIME类型
不知道是什么原因,望解答
谢谢!