dim rs
Set rs = Server.CreateObject("ADODB.RECORDSET")
sql="Select * from rpdan"
rs.Open sql,Conn,1,2
rs.filter="rpid="122"
为什么上边的就行下边的就不行哪?rpid是的数据类型是文本的
dim rpid
dim rs
id=Request.form("rpid")
Set rs = Server.CreateObject("ADODB.RECORDSET")
sql="Select * from rpdan"
rs.Open sql,Conn,1,2
rs.filter="rpid="id"
以下是引用skytiankong在2005-5-27 10:38:44的发言: dim rs Set rs = Server.CreateObject("ADODB.RECORDSET") sql="Select * from rpdan" rs.Open sql,Conn,1,2 rs.filter="rpid="122" 为什么上边的就行下边的就不行哪?rpid是的数据类型是文本的 dim rpid dim rs id=Request.form("rpid") Set rs = Server.CreateObject("ADODB.RECORDSET") sql="Select * from rpdan" rs.Open sql,Conn,1,2 rs.filter="rpid="id"
原代码是这样的吗,?我怎么觉地少了点东西呀