主题:[讨论]标准表达式中数据类型不匹配
以下代码:在执行时显示“ 标准表达式中数据类型不匹配。
”.我把相应语句放到access中用sql语句执行能正确显示查询结果,为什么?
<%'------显示导航条
boardId_string=Request.QueryString("boardId")
topicId_string=Request.QueryString("topicId")
Set rs=Server.CreateObject("ADODB.Recordset")
Set conn=Server.CreateObject("ADODB.Connection")
strProvider="driver={microsoft access driver (*.mdb)};dbq="&server.mappath("bbs.mdb")
conn.open strProvider
topicSql="select * from board,topic,userInfo where topic.topicId="&topicId_string&" and topic.userName=userInfo.userName and
topic.boardId=board.boardId"
Set topicRs=conn.Execute(topicSql)
”.我把相应语句放到access中用sql语句执行能正确显示查询结果,为什么?
<%'------显示导航条
boardId_string=Request.QueryString("boardId")
topicId_string=Request.QueryString("topicId")
Set rs=Server.CreateObject("ADODB.Recordset")
Set conn=Server.CreateObject("ADODB.Connection")
strProvider="driver={microsoft access driver (*.mdb)};dbq="&server.mappath("bbs.mdb")
conn.open strProvider
topicSql="select * from board,topic,userInfo where topic.topicId="&topicId_string&" and topic.userName=userInfo.userName and
topic.boardId=board.boardId"
Set topicRs=conn.Execute(topicSql)