首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > VB >

SQL查询提示缺乏结束语句,该怎么解决

2012-04-20 
SQL查询提示缺乏结束语句sql select * from dbo.SM_DPTBILL where CUS_NAME &Combo1.Text& and R

SQL查询提示缺乏结束语句
sql = "select * from dbo.SM_DPTBILL where CUS_NAME='" &Combo1.Text& "' and REC_LASTUPDATETIME between #"&DTPicker1.Value&" #and #"&DTPicker2.Value&"# "
红色部分总是提示缺乏结束语句,但是怎么看都没发现问题。请帮助找原因

[解决办法]
sql = "select * from dbo.SM_DPTBILL where (CUS_NAME ='" & Combo1.Text & "' and REC_LASTUPDATETIME between #" & DTPicker1.Value & "# and #" & DTPicker2.Value & "#)"

热点排行