VB access sql语句
大家帮我看看这条语句有什么问题,因为有些sql语句在access中无法执行,所以大家麻烦看看这条语句对吗?sql="selectcount(gh)asafrom(sele...
大家帮我看看这条语句有什么问题,因为有些sql语句在access中无法执行,所以大家麻烦看看这条语句对吗?
sql = "select count(gh) as a from (select distinct gh from (select distinct jyzmc from jyz where gsmc='" & Combo2.Text & "' and rq >= #" & DTPicker3(0).Value & "# and rq <= #" & DTPicker4.Value & "# ))"
提示的错误是 展开
sql = "select count(gh) as a from (select distinct gh from (select distinct jyzmc from jyz where gsmc='" & Combo2.Text & "' and rq >= #" & DTPicker3(0).Value & "# and rq <= #" & DTPicker4.Value & "# ))"
提示的错误是 展开
2014-06-19
展开全部
先把SQL语句在access中试好了,再修改程序
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询