PB 10.0 运行一个查询的按钮select error:SQLSTATE=37000[sybase][odbc][adaptive server anywhere]syntax
PB10.0运行一个查询的按钮弹出警告:selecterror:SQLSTATE=37000[sybase][odbc][adaptiveserveranywhere]s...
PB 10.0 运行一个查询的按钮 弹出警告:select error:SQLSTATE=37000[sybase][odbc][adaptive server anywhere]syntax error near '>=' on line 1
求助很多人无果 查询按钮的代码:
string r_where,r_new_sql,r_sheetid,r_date,r_date1
r_sheetid='%' + sle_sheetid.text + '%'
r_date=em_date.text
r_date1=em_date1.text
if r_date=""or r_date="0000-00-00" and r_date1=""or r_date1="0000-00-00" then
r_where="where sheetid like'" + r_sheetid + "'"
else
r_where="where sheetid like'" + r_sheetid + "' and date >= '"+r_date +"'"+" and date <= '"+r_date1 +"'"
end if
r_new_sql=i_sql + r_where
dw_销售.setsqlselect(r_new_sql)
dw_销售.retrieve()
long r_rowcount
r_rowcount=dw_销售.rowcount()
sle_数目.text=string(r_rowcount) 展开
求助很多人无果 查询按钮的代码:
string r_where,r_new_sql,r_sheetid,r_date,r_date1
r_sheetid='%' + sle_sheetid.text + '%'
r_date=em_date.text
r_date1=em_date1.text
if r_date=""or r_date="0000-00-00" and r_date1=""or r_date1="0000-00-00" then
r_where="where sheetid like'" + r_sheetid + "'"
else
r_where="where sheetid like'" + r_sheetid + "' and date >= '"+r_date +"'"+" and date <= '"+r_date1 +"'"
end if
r_new_sql=i_sql + r_where
dw_销售.setsqlselect(r_new_sql)
dw_销售.retrieve()
long r_rowcount
r_rowcount=dw_销售.rowcount()
sle_数目.text=string(r_rowcount) 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询