开发者

Object doesn't support this property or method: 'rsSQL.Execute'

开发者_如何学Cheres my ASP:

sql="select * from empPac where empIdent='" & empIdent & "' and catalogIdent=" & catItem
Set rsSQL = Server.CreateObject ("ADODB.Recordset")
rsSQL.Open sql,strConnect

sql="update empPac set sizeChartIdent=" & newSize & " where empPacIdent=" & rsSQL("empPacIdent")
rsSQL.Execute(sql)

now the problem is that it is throwing the following error:

Object doesn't support this property or method: 'rsSQL.Execute'

i cant figure out why


You cannot do the Execute method on the query, you have to do it on the connection instead.

set conn=Server.CreateObject("ADODB.Connection")
conn.open strConnect

conn.Execute(sql)
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜