ASP分页不能实现

来源:百度知道 编辑:UC知道 时间:2024/06/22 00:46:46
错误提示:
ADODB.Recordset 错误 '800a0bb9'
参数类型不正确,或不在可以接受的范围之内,或与其他参数冲突。
/photo.asp,行 13
下面是1-13行的代码:
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="700" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="41" bgcolor="#000000">    <SPAN class=STYLE4>
<%
if strsid<>"" then
sql = "Select sort01name From sort01 where sort01ID = "& cint(strsid) &" and iif(isNull(sortFather),'',sortFather)='"& strbid &"' and sort01type='0'"
else
sql = "Select sort01name From sort01 where sort01ID = "& cint(strbid) & " and iif(isNull(sortFather),'',sortFather)='' and sort01t

else
sql = "Select sort01name From sort01 where sort01ID = "& cint(strbid) & " and iif(isNull(sortFather),'',sortFather)='' and sort01type='0'"

strbid 已经 为空了 还能 cint?

我觉得是你 strbid的问题,如果是文本型的字段你就要加''如果是数字型 的字段就不要加。你可以先试试。还有,你的那个CINT函数还是不要用的好用trim函数会好点..