If Check1(0).Value = 1 And Check1(1).Value = 0 Then
Adodc1.RecordSource = "select * from 销售信息表 where 销售信息表.日期 between '" + Str(DTPicker1.Value) + "'AND '" + Str(DTPicker2.Value) + "'"
Adodc1.Refresh
Adodc2.RecordSource = "select count(*)as lx,sum(数量)as 数量1,sum(金额)as 金额1 from 销售信息表 where 销售信息表.日期 between '" + Str(DTPicker1.Value) + "'AND '" + Str(DTPicker2.Value) + "'"
Adodc2.Refresh
End If
运行后提示:标准表达式中数据类型不匹配
Adodc1.Refresh出错:
对象'Refresh'的方法'IADODO'失败
Adodc1.RecordSource = "select * from 销售信息表 where 销售信息表.日期 between '" + Str(DTPicker1.Value) + "'AND '" + Str(DTPicker2.Value) + "'"
Adodc1.Refresh
Adodc2.RecordSource = "select count(*)as lx,sum(数量)as 数量1,sum(金额)as 金额1 from 销售信息表 where 销售信息表.日期 between '" + Str(DTPicker1.Value) + "'AND '" + Str(DTPicker2.Value) + "'"
Adodc2.Refresh
End If
运行后提示:标准表达式中数据类型不匹配
Adodc1.Refresh出错:
对象'Refresh'的方法'IADODO'失败
解决方案 »
- vb中 flexgrid的哪个属性可以设置单元格中文本左对齐?
- 一个小程序a.exe,运行后有一个窗口,这时根据窗口标题得到一个句柄,那么这个进程的句柄与窗口的句柄是否相同?
- 请问在没有窗体form的情况下能不能对控件进行操作?
- 小问题,有100分!
- 有关VB6自带的dataReport设置纸张大小的问题.
- VB picturebox的一点问题
- 请问怎么在程序里改变access数据库的表名??非常感谢!!!!!!
- 一个文见家里怎样用VBA
- VB的数据报表怎样使用ADO的数据集作为数据源??
- 如何给手机写程序
- 觉得无聊花了几天时间写了个扩展的picturebox,主要是对其图形和图像处理上做了扩展!
- 高手帮帮忙
Adodc1.RecordSource = "select * from 销售信息表 where 销售信息表.日期 between # " & DTPicker1.Value & " # AND # " & DTPicker2.Value & "#"