职位关键字 工作地点
工作名称 公司名称 校园招聘
中国最好的工作搜索引擎!
  回复留言  
  ASP 0x80040E07 标准表达式中数据类型不匹配。
作者: happyjinwang  01-01 08:00   回复  
 错误类型:

Microsoft OLE DB Provider for ODBC Drivers (0x80040E07)

[Microsoft][ODBC Microsoft Access Driver] 标准表达式中数据类型不匹配。

/show.asp, 第 63 行



附近代码:



'on error resume next

...

Dim show_id,show_Type,Title_Type

show_id=trim(request.QueryString("id"))

show_Type=trim(request.QueryString("showType"))



'如果没有获得类型.就跳转.

if isEmpty(show_Type) then

response.Redirect"main.asp"

end if

if show_Type="log" then

show_Type="1"

Title_Type="..."

elseif show_Type="event" then

show_Type="2"

Title_Type="..."

else

response.Redirect"error.asp?Msg=错误的参数!"

response.End()

end if



Set objConn = Server.CreateObject("ADODB.Connection")

objConn.ConnectionString = "Driver={Microsoft Access Driver (*.mdb)};DBQ=" & DataFile

objConn.Open

Set Str = Server.CreateObject("ADODB.Recordset")

...



'如果ID为空的话表示显示所有记录

if show_id = "" then

SQLStr="Select * From Class where type='" & show_Type & "'"

Str.Open SQLStr,objConn,1,3

...



if not Str.eof then

...

end if

response.write "</ul>"

else

'id不为空则显示相应的文章

SQLStr="Select * From Class where type='" & show_Type & "' and id ='" & show_id & "'"

Str.Open SQLStr,objConn,1,3 '63行



if not Str.eof then

...

end if

end if

  回复:ASP 0x80040E07 标准表达式中数据类型不匹配。
作者: soyboydoy  01-01 08:00   回复  
 SQLStr="Select * From Class where type='" & show_Type & "' and id ='" & show_id & "'"

改成

SQLStr="Select * From Class where type='" & show_Type & "' and id =" & show_id & ""

  回复:ASP 0x80040E07 标准表达式中数据类型不匹配。
作者: happyjinwang  07-05 21:17   回复  
 表里面.id是自动编号.type是文本的1或2

  回复:ASP 0x80040E07 标准表达式中数据类型不匹配。
作者: happyjinwang  07-05 21:17   回复  
 晕....还是没有解决...我看错了...

标 题:
内 容:
用户名:
 游客
 
 
Copyright©2005-2007, 版权所有 WWW.JOBMET.COM
ICP证:京ICP备06019556号