ASP ACCESS问题

来源:百度知道 编辑:UC知道 时间:2024/06/04 11:10:05
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
</head>
<body>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<BODY bottomMargin=0 leftMargin=0 topMargin=10 rightMargin=0>
<!--#include file="conn.asp"-->
<table width="100%">
<TR>
<%
sql="select id,partid,hid,hclass from part where hid="&request("hid")&"order by partid desc"
rs.open sql,con,1,3
if rs

要完整的错误提示

con 是不是错了?是不是 conn ?

rs 在conn.asp中声明了?
Set rs=Server.CreateObject("ADODB.RecordSet")

我知道就是不告诉你

什么错误啊?你就给个代码,怎么帮你看?
这里是你复制的问题还是源文件就这样,如果是的话,在order前面加个空格

where hid="&request("hid")&" order

把错误页的显示写出来。要不怎么看哦。