SQL查询
同样一句代码,当数据库是ACCESS时运行正常,数据库是SQL时切显示‘#’出错。这是为什么呀?急!!!代码如下:
Adodc1.RecordSource = "select * from 生产作业表 where 批号='" & Text1.Text & "'" & _
"and 作业时间 between " + Chr(35) + Str(DTPicker1.Value) + Chr(35) + " and " + Chr(35) + Str(DTPicker2.Value) + Chr(35) + ""