VB编写代码的时候出现缺少语句结束时什么意思啊
nowChart.Column=1Forintrow=1TointyearsstrSQL="select*fromtb_basicinfowhereugenger='男'...
nowChart.Column = 1
For introw = 1 To intyears
strSQL = "select*from tb_basicinfo where ugenger='男'"
strsql=strsql&"and uhiretime between# " & intfirstyear+introw-1 &_
"-1-1#and#" &intfirstyear + introw - 1 & "-12-31#"
Rst.Open strSQL, CnnPeopleDB, adOpenStatic
noechart.Row = introw
nowChar.Data = Rst.RecordCount
Set Rst = Nothing
Next 展开
For introw = 1 To intyears
strSQL = "select*from tb_basicinfo where ugenger='男'"
strsql=strsql&"and uhiretime between# " & intfirstyear+introw-1 &_
"-1-1#and#" &intfirstyear + introw - 1 & "-12-31#"
Rst.Open strSQL, CnnPeopleDB, adOpenStatic
noechart.Row = introw
nowChar.Data = Rst.RecordCount
Set Rst = Nothing
Next 展开
展开全部
纠正SQL句字符串连接错误:
nowChart.Column = 1
For introw = 1 To intyears
strsql = "select*from tb_basicinfo where ugenger='男'"
strsql = strsql & "and uhiretime between# " & intfirstyear + introw - 1 & _
"-1-1#and#" & intfirstyear + introw - 1 & "-12-31#"
Rst.Open strsql, CnnPeopleDB, adOpenStatic
noechart.Row = introw
nowChar.Data = Rst.RecordCount
Set Rst = Nothing
Next
nowChart.Column = 1
For introw = 1 To intyears
strsql = "select*from tb_basicinfo where ugenger='男'"
strsql = strsql & "and uhiretime between# " & intfirstyear + introw - 1 & _
"-1-1#and#" & intfirstyear + introw - 1 & "-12-31#"
Rst.Open strsql, CnnPeopleDB, adOpenStatic
noechart.Row = introw
nowChar.Data = Rst.RecordCount
Set Rst = Nothing
Next
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
nowChart.Column = 1
For introw = 1 To intyears
strSQL = "select * from tb_basicinfo where ugenger='男'"
strsql=strsql&" and uhiretime between# " & intfirstyear+cstr(introw-1 )&_
"-1-1#and#" &cstr(intfirstyear + introw - 1) & "-12-31#"
Rst.Open strSQL, CnnPeopleDB, adOpenStatic
noechart.Row = introw
nowChar.Data = Rst.RecordCount
Set Rst = Nothing
Next
For introw = 1 To intyears
strSQL = "select * from tb_basicinfo where ugenger='男'"
strsql=strsql&" and uhiretime between# " & intfirstyear+cstr(introw-1 )&_
"-1-1#and#" &cstr(intfirstyear + introw - 1) & "-12-31#"
Rst.Open strSQL, CnnPeopleDB, adOpenStatic
noechart.Row = introw
nowChar.Data = Rst.RecordCount
Set Rst = Nothing
Next
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询