语句未结束:StrTmp = StrTmp & "Rs("ID")" 求教??

[复制链接]
查看11 | 回复1 | 2010-10-5 18:11:42 | 显示全部楼层 |阅读模式
FunctionGetClassID(diqu)
Sql="select ID from Ok3w_Class where diqu=" & diqu
Rs.Open Sql,Conn,0,1
StrTmp = "and ClassID=("
Dim num
num=1
Do While Not Rs.Eof

If num>1 Then

StrTmp = StrTmp & "OR"

End If

StrTmp = StrTmp & "Rs("ID")"
Rs.MoveNext
num=num+1
Loop
Rs.Close
StrTmp = StrTmp & ")"
GetClassID = " & StrTmp & "
End Function

回复

使用道具 举报

千问 | 2010-10-5 18:11:42 | 显示全部楼层
修改为StrTmp = StrTmp & Rs("ID")
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行