| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1588 人关注过本帖
标题:表单更新记录出错
只看楼主 加入收藏
wutao198419
Rank: 1
等 级:新手上路
帖 子:20
专家分:0
注 册:2006-10-23
收藏
 问题点数:0 回复次数:16 
表单更新记录出错
错误类型:
ADODB.Field (0x800A0BCD)
BOF 或 EOF 中有一个是“真”,或者当前的记录已被删除,所需的操作要求一个当前的记录。
/psbsh1.asp, 第 469 行

请问这是什么原因啊
搜索更多相关主题的帖子: 表单 记录 BOF EOF Field 
2006-10-25 09:02
hangxj
Rank: 6Rank: 6
等 级:贵宾
威 望:29
帖 子:2045
专家分:0
注 册:2006-4-10
收藏
得分:0 
在更新或者删除记录的时候没有进行是否为空的处理.
看你的代码.

http://www./
2006-10-25 09:24
wutao198419
Rank: 1
等 级:新手上路
帖 子:20
专家分:0
注 册:2006-10-23
收藏
得分:0 
<input type="hidden" name="MM_update" value="form7">
<input type="hidden" name="MM_recordId" value="<%= qjsb.Fields.Item("id").Value %>">

就是这些了 我要更新的有些值是空的 是不是就不用更新这个命令啊
2006-10-25 09:40
wutao198419
Rank: 1
等 级:新手上路
帖 子:20
专家分:0
注 册:2006-10-23
收藏
得分:0 
就是有一条记录  有7项内容  现在我又添加了2项内容进去 就有9项了  我想用更新把我后来添加的那2项内容放进那一条记录中去

[此贴子已经被作者于2006-10-25 9:44:49编辑过]


2006-10-25 09:44
wutao198419
Rank: 1
等 级:新手上路
帖 子:20
专家分:0
注 册:2006-10-23
收藏
得分:0 
我一开始用插入的方法 可是用了之后在数据库中变会又增加一条记录 那条记录只有我后来添加的那2项的内容
我想把以前那条有7项内容的记录变成一条有9项内容的
2006-10-25 09:46
wutao198419
Rank: 1
等 级:新手上路
帖 子:20
专家分:0
注 册:2006-10-23
收藏
得分:0 
是不是可是设置成以前记录为空的地方也可以进行更新呢
2006-10-25 09:48
hangxj
Rank: 6Rank: 6
等 级:贵宾
威 望:29
帖 子:2045
专家分:0
注 册:2006-4-10
收藏
得分:0 
全部代码

http://www./
2006-10-25 10:02
wutao198419
Rank: 1
等 级:新手上路
帖 子:20
专家分:0
注 册:2006-10-23
收藏
得分:0 
<body>
<tr>
<form ACTION="<%=MM_editAction%>" METHOD="POST" name="form7" id="form7">
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#006600">
<tr>
<td height="50" colspan="19" nowrap="NOWRAP" bgcolor="#9cd7ff"><div align="center"><span class="STYLE1">配 送 部 审 核</span></div></td>
</tr>

<tr>
<td height="40" colspan="2" nowrap="NOWRAP" bgcolor="#9cd7ff"><div align="center">申报部门</div></td>
<td height="40" nowrap="NOWRAP" bgcolor="#9cd7ff"><div align="center">申报日期</div></td>
<td height="40" nowrap="NOWRAP" bgcolor="#9cd7ff"><div align="center">客户名称</div></td>
<td height="40" nowrap="NOWRAP" bgcolor="#9cd7ff"><div align="center">客户电话</div></td>
<td height="40" nowrap="NOWRAP" bgcolor="#9cd7ff"><div align="center">经营地址</div></td>
<td height="40" nowrap="NOWRAP" bgcolor="#9cd7ff"><div align="center">经营区域</div></td>
<td height="40" nowrap="NOWRAP" bgcolor="#9cd7ff"><div align="center">发票类型</div></td>
<td height="40" nowrap="NOWRAP" bgcolor="#9cd7ff"><div align="center">不实行电子结算原因</div></td>
<td height="40" nowrap="NOWRAP" bgcolor="#9cd7ff"><div align="center">专卖证号</div></td>
<td height="40" nowrap="NOWRAP" bgcolor="#9cd7ff"><div align="center">办证日期</div></td>
<td height="40" nowrap="NOWRAP" bgcolor="#9cd7ff"><div align="center">区局备注</div></td>
<td height="40" nowrap="NOWRAP" bgcolor="#9cd7ff"><div align="center">确认审核</div></td>
<td height="40" nowrap="NOWRAP" bgcolor="#9cd7ff"><div align="center">配送部</div></td>
<td height="40" nowrap="NOWRAP" bgcolor="#9cd7ff"><div align="center">配送员</div></td>
<td height="40" nowrap="NOWRAP" bgcolor="#9cd7ff"><div align="center">星期几配送</div></td>
<td height="40" nowrap="NOWRAP" bgcolor="#9cd7ff"><div align="center">代送点证号</div></td>
<td height="40" nowrap="NOWRAP" bgcolor="#9cd7ff"><div align="center">配送处理时间</div></td>
<td height="40" nowrap="NOWRAP" bgcolor="#9cd7ff"><div align="center">配送备注</div></td>
</tr>
<tr>
<td></td>
</tr>


<%
While ((Repeat1__numRows <> 0) AND (NOT qjsb.EOF))
%>
<tr>
<td height="50" colspan="2" nowrap="nowrap" bgcolor="#ffcccc"><label>
<input name="sbbm" type="text" id="sbbm" value="<%=(qjsb.Fields.Item("sbbm").Value)%>" />
</label></td>
<td height="50" nowrap="nowrap" bgcolor="#ffcccc"><label>
<input name="bzrq" type="text" id="bzrq" value="<%=(qjsb.Fields.Item("sbrq").Value)%>" />
</label></td>
<td height="50" nowrap="nowrap" bgcolor="#ffcccc"><label>
<input name="khmc" type="text" id="khmc" value="<%=(qjsb.Fields.Item("khmc").Value)%>" />
</label></td>
<td height="50" nowrap="nowrap" bgcolor="#ffcccc"><label>
<input name="khdh" type="text" id="khdh" value="<%=(qjsb.Fields.Item("khdh").Value)%>" />
</label></td>
<td height="50" nowrap="nowrap" bgcolor="#ffcccc"><label>
<input name="jydz" type="text" id="jydz" value="<%=(qjsb.Fields.Item("jydz").Value)%>" />
</label></td>
<td height="50" nowrap="nowrap" bgcolor="#ffcccc"><label>
<input name="jyqy" type="text" id="jyqy" value="<%=(qjsb.Fields.Item("jyqy").Value)%>" />
</label></td>
<td height="50" nowrap="nowrap" bgcolor="#ffcccc"><label>
<input name="fplx" type="text" id="fplx" value="<%=(qjsb.Fields.Item("fplx").Value)%>" />
</label></td>
<td height="50" nowrap="nowrap" bgcolor="#ffcccc"><label>
<input name="bdzjsyy" type="text" id="bdzjsyy" value="<%=(qjsb.Fields.Item("bdzjsyy").Value)%>" />
</label></td>
<td height="50" nowrap="nowrap" bgcolor="#ffcccc"><label>
<input name="zmzh" type="text" id="zmzh" value="<%=(qjsb.Fields.Item("zmzh").Value)%>" />
</label></td>
<td height="50" nowrap="nowrap" bgcolor="#ffcccc"><label>
<input name="bzrq" type="text" id="bzrq" value="<%=(qjsb.Fields.Item("bzrq").Value)%>" />
</label></td>
<td height="50" nowrap="nowrap" bgcolor="#ffcccc"><label>
<input name="qjbz" type="text" id="qjbz" value="<%=(qjsb.Fields.Item("qjbz").Value)%>" />
</label></td>
<td nowrap="nowrap" bgcolor="#ffcccc"><label>
<select name="psbsh" id="psbsh">
<option value="butongguo" selected="selected">不审核</option>
<option value="tongguo">审核通过</option>
</select>
</label></td>
<td height="50" nowrap="nowrap" bgcolor="#ffcccc"><label>
<select name="psb" id="psb">
<option selected="selected">请选择</option>
<option>配送一部</option>
<option>配送二部</option>
<option>配送三部</option>
</select>
</label></td>
<td height="50" nowrap="nowrap" bgcolor="#ffcccc"><label>
<select name="psy" id="psy">
<option selected="selected">请选择</option>
<option>市区1-01</option>
<option>市区1-02</option>
<option>市区1-03</option>
<option>市区1-04</option>
<option>市区1-05</option>
<option>市区1-06</option>
<option>市区1-07</option>
<option>市区1-08</option>
<option>市区1-09</option>
<option>市区1-10</option>
<option>市区1-11</option>
<option>市区1-12</option>
<option>市区1-13</option>
<option>市区1-14</option>
<option>市区1-15</option>
<option>市区1-16</option>
<option>市区1-17</option>
<option>市区1-18</option>
<option>市区1-19</option>
<option>市区1-20</option>
<option>市区1-21</option>
<option>市区1-22</option>
<option>市区1-23</option>
<option>市区1-24</option>
<option>市区1-25</option>
<option>市区1-26</option>
<option>市区1-27</option>
<option>市区1-28</option>
<option>市区1-29</option>
<option>市区2-01</option>
<option>市区2-02</option>
<option>市区2-03</option>
<option>市区2-04</option>
<option>市区2-05</option>
<option>市区2-06</option>
<option>市区2-07</option>
<option>市区2-08</option>
<option>市区2-09</option>
<option>市区2-10</option>
<option>市区2-11</option>
<option>市区2-12</option>
<option>市区2-13</option>
<option>市区2-14</option>
<option>市区2-15</option>
<option>市区2-16</option>
<option>市区2-17</option>
<option>市区2-18</option>
<option>市区2-19</option>
<option>市区2-20</option>
<option>市区2-21</option>
<option>市区2-22</option>
<option>市区2-23</option>
<option>市区2-24</option>
<option>市区2-25</option>
<option>市区2-26</option>
<option>市区2-27</option>
<option>市区3-01</option>
<option>市区3-02</option>
<option>市区3-03</option>
<option>市区3-04</option>
<option>市区3-05</option>
<option>市区3-06</option>
<option>市区3-07</option>
<option>市区3-08</option>
<option>市区3-09</option>
<option>市区3-10</option>
<option>市区3-11</option>
<option>市区3-12</option>
<option>市区3-13</option>
<option>市区3-14</option>
<option>市区3-15</option>
<option>市区3-16</option>
<option>市区3-17</option>
<option>市区3-18</option>
<option>市区3-19</option>
<option>市区3-20</option>
<option>市区3-21</option>
<option>市区3-23</option>
<option>市区3-24</option>
<option>市区3-25</option>
<option>市区3-26</option>
<option>市区3-27</option>
<option>市区3-28</option>
<option>市区3-29</option>
<option>市区3-30</option>
<option>市区3-31</option>
<option>市区3-32</option>
<option>市区3-33</option>
<option>市区3-34</option>
<option>市区3-35</option>
<option>市区3-36</option>
<option>市区3-37</option>
<option>市区3-38</option>
<option>市区3-39</option>
<option>市区3-40</option>
<option>市区3-41</option>
<option>市区3-42</option>
<option>市区3-43</option>
<option>市区3-44</option>
<option>市区3-45</option>
<option>市区3-46</option>
</select>
</label></td>
<td height="50" nowrap="nowrap" bgcolor="#ffcccc"><label>
<select name="xqjps" id="xqjps">
<option selected="selected">请选择</option>
<option>周一</option>
<option>周二</option>
<option>周三</option>
<option>周四</option>
<option>周五</option>
<option>周六</option>
<option>周日</option>
</select>
</label></td>
<td height="50" nowrap="nowrap" bgcolor="#ffcccc"><label>
<input name="dsdzh" type="text" id="dsdzh" />
</label></td>
<td height="50" nowrap="nowrap" bgcolor="#ffcccc"><label>
<input name="psclsj" type="text" id="psclsj" value="<% = Date%>" size="12" />
</label></td>
<td height="50" nowrap="nowrap" bgcolor="#ffcccc"><label>
<input name="psbz" type="text" id="psbz" size="25" />
</label></td>
</tr>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
qjsb.MoveNext()
Wend
%>

<tr>
<td height="60" colspan="19" nowrap="nowrap" bgcolor="#9cd7ff"><label>
<div align="center">
<input name="Submit" type="submit" class="STYLE1" value="审 核 通 过" />
</div>
</label></td>
</tr>
</table>




<input type="hidden" name="MM_update" value="form7">
<input type="hidden" name="MM_recordId" value="<%= qjsb.Fields.Item("bdzjsyy").Value %>">
</form>
</tr>
</body>
</html>
<%
qjsb.Close()
Set qjsb = Nothing
%>

2006-10-25 10:09
wutao198419
Rank: 1
等 级:新手上路
帖 子:20
专家分:0
注 册:2006-10-23
收藏
得分:0 
就是为了实现向那条记录中再加几项内容
2006-10-25 10:10
hangxj
Rank: 6Rank: 6
等 级:贵宾
威 望:29
帖 子:2045
专家分:0
注 册:2006-4-10
收藏
得分:0 
我是要你出现问题的那个页面的代码.以及代码所在行,请标出来.

http://www./
2006-10-25 10:13
快速回复:表单更新记录出错
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.013144 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved