Microsoft JET Database Engine (0x80040E10)至少一个参数没有被指定值。我查了N遍,实在查不出问题,求助
整段代码,报错红色部分<%
if request.Cookies("shiwei_username")="" then
%>
<script language="javascript">
top.location.href="../index.asp"
</script>
<%
response.end
end if
%>
<!-- #include file="../conn2.asp" -->
<!-- #include file="../const.asp" -->
<html>
<head>
<xjID><%=dianming%> - 定额管理</xjID>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../style/style.css" rel="stylesheet" type="text/css">
<style>
body {
background-color:#FFFFFF;
}
</style>
<script language=javascript>
function preview() {
bdhtml=window.document.body.innerHTML;
sprnstr="<!--startprint-->";
eprnstr="<!--endprint-->";
prnhtml=bdhtml.substr(bdhtml.indexOf(sprnstr)+17);
prnhtml=prnhtml.substring(0,prnhtml.indexOf(eprnstr));
window.document.body.innerHTML=prnhtml;
window.print();
window.document.body.innerHTML=bdhtml;
}
</script>
</HEAD>
<BODY>
<script>
function CheckAll(form) {
for (var i=0;i<form.elements.length;i++) {
var e = form.elements[i];
if (e.name != 'chkall') e.checked = form.chkall.checked;
}
}
</script>
<%
if fla13="0" and request.Cookies("shiwei_id")<>"1" then
%>
<br><center>
<img src="../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../images/note.gif" align="absmiddle"> <font color="#FF0000">你不具备此权限,请与管理员联系!</font></center>
<%
response.end
end if
'取得当前页码
currentpage=request("page")
'response.write currentpage
'response.end
if currentpage<1 or currentpage="" then
currentpage="1"
end if
'取得搜索关键字
nowguige=request("guige")
nowkeyword=request("keyword")
%>
<table width="100%" border="0" cellpadding="0" cellspacing="0" align="center">
<form name="form2">
<input type="hidden" name="form" value="<%=request("form")%>">
<input type="hidden" name="field" value="<%=request("field")%>">
<input type="hidden" name="field2" value="<%=request("field2")%>">
<input type="hidden" name="field3" value="<%=request("field3")%>">
<input type="hidden" name="span1" value="<%=request("span1")%>">
<input type="hidden" name="field4" value="<%=request("field4")%>">
<tr>
<td width="50" height="21"> <img src="../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../images/print.jpg" align="absmiddle" style="cursor:hand;" onClick="preview();"></td>
<td width="*" align="right">
搜索:
<%
if request.Cookies("shiwei_id")="1" or fla88="1" then
sql="select * from guige order by id"
set rs_guige=conn.execute(sql)
else
sql="select * from guige where instr(login,',"&request.Cookies("shiwei_id")&",')>0 order by id"
set rs_guige=conn.execute(sql)
if rs_guige.eof then
nowguige="0"
elseif request("guige")="" then
nowguige=rs_guige("id")
end if
end if
%>
<select name="guige" onChange="form2.submit()" size="1">
<%if request.Cookies("shiwei_id")="1" or fla88="1" then%>
<option>请选择定额类别</option>
<%elseif rs_guige.eof then%>
<option value="0">没有你选择的定额</option>
<%end if%>
<%
do while rs_guige.eof=false
%>
<option value="<%=rs_guige("id")%>"<%if trim(cstr(rs_guige("id")))=nowguige then%> <%end if%>><%=rs_guige("guige")%></option>
<%
rs_guige.movenext
loop
%>
</select>
<input type="text" name="keyword" size="20" value="<%=nowkeyword%>">
<input type="submit" value=" 查询 " class="button">
</td>
</tr>
</form>
</table>
<%
set rs_dek =server.createobject("ADODB.RecordSet")
sql="select * from dek where 1=1"
if nowguige<>"" then
sql=sql&" and id_guige="&nowguige
end if
if nowkeyword<>"" then
sql=sql&" and (tmmc like '%"&nowkeyword&"%' or debh like '%"&nowkeyword&"%')"
end if
if request("order1")<>"" then
sql=sql&" order by photo "&request("order1")
elseif request("order2")<>"" then
sql=sql&" order by debh "&request("order2")
elseif request("order3")<>"" then
sql=sql&" order by xjID "&request("order3")
elseif request("order4")<>"" then
sql=sql&" order by id_guige "&request("order4")
elseif request("order5")<>"" then
sql=sql&" order by danwei "&request("order5")
elseif request("order6")<>"" then
sql=sql&" order by tmmc "&request("order6")
elseif request("order7")<>"" then
sql=sql&" order by jggr "&request("order7")
elseif request("order8")<>"" then
sql=sql&" order by pggr "&request("order8")
else
sql=sql&" order by id desc"
end if
%>
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#C4D8ED">
<tr>
<td>
<img src="../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../images/r_1.gif" alt="" /></td>
<td width="100%" background="../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../images/r_0.gif">
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td> </td>
<td align="right">
<p align="left">请按实际使用情况正确选择定额!</td>
</tr>
</table>
</td>
<td>
<img src="../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../images/r_2.gif" alt="" /></td>
</tr>
<tr>
<td nowrap></td>
<td nowrap>
<!--startprint-->
<div align="center">
<table cellpadding="4" cellspacing="1" class="toptable grid" border="1" width="850">
<form name="form1">
<input type="hidden" name="form" value="<%=request("form")%>">
<input type="hidden" name="field" value="<%=request("field")%>">
<input type="hidden" name="field2" value="<%=request("field2")%>">
<input type="hidden" name="field3" value="<%=request("field3")%>">
<input type="hidden" name="span1" value="<%=request("span1")%>">
<input type="hidden" name="field4" value="<%=request("field4")%>">
<input type="hidden" name="guige" value="<%=nowguige%>">
<input type="hidden" name="debh" value="<%=nowdebh%>">
<input type="hidden" name="tmmc" value="<%=nowtmmc%>">
<input type="hidden" name="keyword" value="<%=nowkeyword%>">
<input type="hidden" name="order1" value="<%=request("order1")%>">
<input type="hidden" name="order2" value="<%=request("order2")%>">
<input type="hidden" name="order3" value="<%=request("order3")%>">
<input type="hidden" name="order4" value="<%=request("order4")%>">
<input type="hidden" name="order5" value="<%=request("order5")%>">
<input type="hidden" name="order6" value="<%=request("order6")%>">
<input type="hidden" name="order7" value="<%=request("order7")%>">
<input type="hidden" name="order8" value="<%=request("order8")%>">
<input type="hidden" name="order9" value="<%=request("order9")%>">
<input type="hidden" name="order10" value="<%=request("order10")%>">
<input type="hidden" name="order11" value="<%=request("order11")%>">
<input type="hidden" name="order12" value="<%=request("order12")%>">
<input type="hidden" name="order13" value="<%=request("order13")%>">
<input type="hidden" name="order14" value="<%=request("order14")%>">
<input type="hidden" name="order15" value="<%=request("order15")%>">
<tr align="center">
<%if showpic="yes" then%>
<td class="category" nowrap height="20" width="13%">
<a href="?order1=<%if request("order1")="asc" then%>desc<%else%>asc<%end if%>&form=<%=request("form")%>&field=<%=request("field")%>&field2=<%=request("field2")%>&field3=<%=request("field3")%>&span1=<%=request("span1")%>&field4=<%=request("field4")%>&page=<%=currentpage%>&keyword=<%=nowkeyword%>&guige=<%=nowguige%>&debh=<%=nowdebh%>&tmmc=<%=nowtmmc%>" class="xjID">图片<%if request("order1")="asc" then%><img src="../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../images/up2.gif" border="0" hspace="2" align="absmiddle"><%else%><img src="../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../images/down2.gif" border="0" hspace="2" align="absmiddle"><%end if%></a>
</td>
<%end if%>
<td class="category" nowrap height="20" width="76">
<a href="?order3=<%if request("order3")="asc" then%>desc<%else%>asc<%end if%>&form=<%=request("form")%>&field=<%=request("field")%>&field2=<%=request("field2")%>&field3=<%=request("field3")%>&span1=<%=request("span1")%>&field4=<%=request("field4")%>&page=<%=currentpage%>&keyword=<%=nowkeyword%>&guige=<%=nowguige%>&debh=<%=nowdebh%>&tmmc=<%=nowtmmc%>" class="xjID">
定额编码<%if request("order3")="asc" then%><img src="../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../images/up2.gif" border="0" hspace="2" align="absmiddle"><%else%><img src="../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../images/down2.gif" border="0" hspace="2" align="absmiddle"><%end if%></a>
</td>
<td class="category" nowrap height="20" width="124">
<a href="?order4=<%if request("order4")="asc" then%>desc<%else%>asc<%end if%>&form=<%=request("form")%>&field=<%=request("field")%>&field2=<%=request("field2")%>&field3=<%=request("field3")%>&span1=<%=request("span1")%>&field4=<%=request("field4")%>&page=<%=currentpage%>&keyword=<%=nowkeyword%>&guige=<%=nowguige%>&debh=<%=nowdebh%>&tmmc=<%=nowtmmc%>" class="xjID">
定额名称<%if request("order4")="asc" then%><img src="../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../images/up2.gif" border="0" hspace="2" align="absmiddle"><%else%><img src="../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../images/down2.gif" border="0" hspace="2" align="absmiddle"><%end if%></a>
</td>
<td class="category" nowrap height="20" width="65">
<a href="?order5=<%if request("order5")="asc" then%>desc<%else%>asc<%end if%>&form=<%=request("form")%>&field=<%=request("field")%>&field2=<%=request("field2")%>&field3=<%=request("field3")%>&span1=<%=request("span1")%>&field4=<%=request("field4")%>&page=<%=currentpage%>&keyword=<%=nowkeyword%>&guige=<%=nowguige%>&debh=<%=nowdebh%>&tmmc=<%=nowtmmc%>" class="xjID">
单位<%if request("order5")="asc" then%><img src="../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../images/up2.gif" border="0" hspace="2" align="absmiddle"><%else%><img src="../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../images/down2.gif" border="0" hspace="2" align="absmiddle"><%end if%></a>
</td>
<td class="category" nowrap height="20" width="96">
<a href="?order6=<%if request("order6")="asc" then%>desc<%else%>asc<%end if%>&form=<%=request("form")%>&field=<%=request("field")%>&field2=<%=request("field2")%>&field3=<%=request("field3")%>&span1=<%=request("span1")%>&field4=<%=request("field4")%>&page=<%=currentpage%>&keyword=<%=nowkeyword%>&guige=<%=nowguige%>&debh=<%=nowdebh%>&tmmc=<%=nowtmmc%>" class="xjID">
定额类别<%if request("order6")="asc" then%><img src="../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../images/up2.gif" border="0" hspace="2" align="absmiddle"><%else%><img src="../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../images/down2.gif" border="0" hspace="2" align="absmiddle"><%end if%></a>
</td>
<td class="category" nowrap height="20" width="81">
<a href="?order7=<%if request("order7")="asc" then%>desc<%else%>asc<%end if%>&form=<%=request("form")%>&field=<%=request("field")%>&field2=<%=request("field2")%>&field3=<%=request("field3")%>&span1=<%=request("span1")%>&field4=<%=request("field4")%>&page=<%=currentpage%>&keyword=<%=nowkeyword%>&guige=<%=nowguige%>&debh=<%=nowdebh%>&tmmc=<%=nowtmmc%>" class="xjID">
技工工日<%if request("order7")="asc" then%><img src="../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../images/up2.gif" border="0" hspace="2" align="absmiddle"><%else%><img src="../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../images/down2.gif" border="0" hspace="2" align="absmiddle"><%end if%></a>
</td>
<td class="category" nowrap height="20" width="92">
<a href="?order7=<%if request("order7")="asc" then%>desc<%else%>asc<%end if%>&form=<%=request("form")%>&field=<%=request("field")%>&field2=<%=request("field2")%>&field3=<%=request("field3")%>&span1=<%=request("span1")%>&field4=<%=request("field4")%>&page=<%=currentpage%>&keyword=<%=nowkeyword%>&guige=<%=nowguige%>&debh=<%=nowdebh%>&tmmc=<%=nowtmmc%>" class="xjID">
普工工日<%if request("order7")="asc" then%><img src="../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../images/up2.gif" border="0" hspace="2" align="absmiddle"><%else%><img src="../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../images/down2.gif" border="0" hspace="2" align="absmiddle"><%end if%></a>
</td>
</tr>
<%
rs_dek.open sql,conn,1,2
if not rs_dek.eof then
rs_dek.pagesize=maxrecord
rs_dek.absolutepage=currentpage
y=""
for currentrec=1 to rs_dek.pagesize
if rs_dek.eof then
exit for
end if
'listy=split(y,"-|-")
'nowshow=true
'for z=0 to UBound(listy)-1
' if listy(z)=rs_dek("debh") then
' nowshow=false
' exit for
' end if
'next
'if nowshow then
' y=y&rs_dek("debh")&"-|-"
%>
<tr onMouseOver="this.className='highlight'" onMouseOut="this.className=''" <%if request("form")<>"" then%>onDblClick="window.opener.document.<%=request("form")%>.<%=request("field")%>.value='<%=rs_dek("debh")%>';<%if request("field2")<>"" then%>window.opener.document.<%=request("form")%>.<%=request("field2")%>.value='<%=rs_dek("pggr")%>';<%end if%>;<%if request("field3")<>"" then%>window.opener.document.<%=request("form")%>.<%=request("field3")%>.value='<%=rs_dek("tmmc")%>';<%end if%>;<%if request("field4")<>"" then%>window.opener.document.<%=request("form")%>.<%=request("field4")%>.value='<%=rs_dek("danwei")%>';<%end if%>;<%if request("field5")<>"" then%>window.opener.document.<%=request("form")%>.<%=request("field5")%>.value='<%=rs_dek("jggr")%>';<%end if%>;<%if request("span1")<>"" then%>window.opener.document.all.<%=request("span1")%>.innerHTML='定额名称:<%=rs_dek("xjID")%>,<%=(nowtext)%>';<%end if%>window.close();"<%else%>onDblClick="javascript:var win=window.open('dek_show.asp?id=<%=rs_dek("id")%>','定额详细信息','width=895,height=503,top=142,left=115,toolbar=no,location=yes,directories=no,status=yes,menubar=no,resizable=yes,scrollbars=yes'); win.focus()"<%end if%>>
<%if showpic="yes" then%><td align="center" nowrap height="20" width="13%"><%if rs_dek("photo")<>"" then%><a href="../upload/<%=rs_dek("photo")%>" target="_blank"><img src="../upload/<%=rs_dek("photo")%>" border="0" width="60"></a><%else%>无图<%end if%></td><%end if%>
<td align="center" height="20" nowrap><%=rs_dek("debh")%></td>
<td align="center" nowrap height="20"><%=rs_dek("tmmc")%></td>
<td align="center" nowrap height="20"><%=rs_dek("danwei")%></td>
<td align="center" width="8%" nowrap>
<%set rs_guige=conn.execute("select * from guige where id="&rs_dek("id_guige"))%>
<%if rs_guige.eof then%> <%else%><%=rs_guige("guige")%><%end if%>
<td align="center" nowrap height="20"><%=formatnumber(rs_dek("pggr"),2)%></td>
<td align="center" nowrap height="20"><%=formatnumber(rs_dek("jggr"),2)%></td>
</tr>
<%
'end if
rs_dek.movenext
next
else
%>
<tr align="center" onMouseOver="this.className='highlight'" onMouseOut="this.className=''">
<td colspan="12" height="20" align="center" style="color:red"><b>没有找到记录</b></td>
</tr>
<%
end if
%>
<%
if rs_dek.recordcount>0 then
%>
<tr>
<td colspan="12" height="20" class="category">
<table cellpadding=0 cellspacing=0 width="100%">
<tr>
<td width="20%" align="left" style="color:#FF0000;"> <%if request("form")<>"" then%>双击选择定额<%else%>双击查看定额详细信息<%end if%></td>
<td width="80%" align="right">
<%=rs_dek.recordcount%> 条信息 共 <%=rs_dek.pagecount%> 页
<%
nowstart=currentpage-3
if nowstart<1 then
nowstart=1
end if
nowend=currentpage+3
if nowend>rs_dek.pagecount then
nowend=rs_dek.pagecount
end if
response.write " <a href='?form="&request("form")&"&field="&request("field")&"&field2="&request("field2")&"&span1="&request("span1")&"&keyword="&nowkeyword&"&guige="&nowguige&"&page=1&order1="&request("order1")&"&order2="&request("order2")&"&order3="&request("order3")&"&order4="&request("order4")&"&order5="&request("order5")&"&order6="&request("order6")&"&order7="&request("order7")&"&order8="&request("order8")&"&order9="&request("order9")&"&order10="&request("order10")&"&order11="&request("order11")&"&order12="&request("order12")&"&order13="&request("order13")&"&order14="&request("order14")&"&order15="&request("order15")&"' class='page'>最前页</a> "
for ipage=nowstart to nowend
if cstr(ipage)=cstr(currentpage) then
response.write " <span style='font-weight:bold;color:#5858E6'>" & ipage &"</span> "
else
response.write " [ <a href='?form="&request("form")&"&field="&request("field")&"&field2="&request("field2")&"&span1="&request("span1")&"&keyword="&nowkeyword&"&guige="&nowguige&"&page="&ipage&"&order1="&request("order1")&"&order2="&request("order2")&"&order3="&request("order3")&"&order4="&request("order4")&"&order5="&request("order5")&"&order6="&request("order6")&"&order7="&request("order7")&"&order8="&request("order8")&"&order9="&request("order9")&"&order10="&request("order10")&"&order11="&request("order11")&"&order12="&request("order12")&"&order13="&request("order13")&"&order14="&request("order14")&"&order15="&request("order15")&"' class='page'>" & ipage &"</a> ] "
end if
next
response.write " <a href='?form="&request("form")&"&field="&request("field")&"&field2="&request("field2")&"&span1="&request("span1")&"&keyword="&nowkeyword&"&guige="&nowguige&"&page="&rs_dek.pagecount&"&order1="&request("order1")&"&order2="&request("order2")&"&order3="&request("order3")&"&order4="&request("order4")&"&order5="&request("order5")&"&order6="&request("order6")&"&order7="&request("order7")&"&order8="&request("order8")&"&order9="&request("order9")&"&order10="&request("order10")&"&order11="&request("order11")&"&order12="&request("order12")&"&order13="&request("order13")&"&order14="&request("order14")&"&order15="&request("order15")&"' class='page'>最后页</a> "
%>
<select name="page" onChange="form1.action='?';form1.submit();">
<%
for x=1 to rs_dek.pagecount
%>
<option value="<%=x%>"<%if currentpage=trim(cstr(x)) then%> selected="selected"<%end if%>><%=x%></option>
<%
next
%>
</select>
</td>
</tr></table></td></tr>
<%end if%>
</form>
</table>
</div>
<!--endprint-->
</td>
<td nowrap></td>
</tr>
<tr>
<td>
<img src="../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../images/r_4.gif" alt="" /></td>
<td></td>
<td>
<img src="../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../images/r_3.gif" alt="" /></td>
</tr>
</table>
</body>
</html>