提示‘3669’即时错误是什么意思
发表在VB答疑区
2008-05-19
是否精华
是
否
版块置顶:
是
否
StrTempSql = "select substring(区号,1,2),sum(实用水量),sum(水费金额+滞纳金+附加费+排污费+水资源费),COUNT(DISTINCT 用户号) 实交户 from 抄收数据表 " & _<BR> " WHERE (抄表日期 >='" & StartRQ & "' and 抄表日期 <='" & EndRQ & "') and 实用水量>=0 and (substring(区号,1,2)>='" & StartQH & "' and substring(区号,1,2)<='" & EndQH & "') " & _<BR> "group by substring(区号,1,2) ORDER BY substring(区号,1,2)"<BR> Set rs = Conn.OpenRecordset(StrTempSql, dbReadOnly)