|
错误类型:
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 |