为什么修改不了原来的数据~~~~~~~~~在线独自等待~~~~~~~~
<head>
<title></title>
</head>
<body>
<%
dim cn,rs,str
set cn=Server.CreateObject("ADODB.Connection")
cn.open="Driver={SQL SERVER};Server=FILESERVER;Database=OA;UID=sa;PWD=kschina918;"
set rs=Server.CreateObject("ADODB.RecordSet")
str = Request.form("sgdwj")
if trim(str)<> "" then
sql = "select * from jlb_ylt where gdwj='"& Request.form("sgdwj") &"'"
else
sql = "select * from jlb_ylt"
end if
rs.open sql,cn,1,1
%>
<br>
<br>
恭喜,你的记录修改成功:<br>
<p align=center>修改前记录为:</p><br>
<table border=1 align="center">
<tr>
<td width=100 align=center>归档文件</td>
<td width=100 align=center>预期完成日</td>
<td width=100 align=center>实际完成日</td>
<td width=100 align=center>设计人</td>
<td width=100 align=center>审核</td>
<td width=200 align=center>技术备忘</td>
</tr>
<%
if Not rs.Eof then
Do while Not rs.Eof
%>
<tr>
<td width=100 align=center><%=rs(0) %></td>
<td width=100 align=center><%=rs(1) %></td>
<td width=100 align=center><%=rs(2) %></td>
<td width=100 align=center><%=rs(3)%></td>
<td width=100 align=center><%=rs(4)%></td>
<td width=200 align=center><%=rs(5)%></td>
</tr>
<% If not rs.Eof Then rs.MoveNext
Loop
else
%>
<tr>
<td width=100 align=center>无记录</td>
<td width=100 align=center>无记录</td>
<td width=100 align=center>无记录</td>
<td width=100 align=center>无记录</td>
<td width=100 align=center>无记录</td>
<td width=200 align=center>无记录</td>
</tr>
<%end if
rs.close
set rs=nothing
cn.close
set cn=nothing
%>
</table>
<%
dim con,ros
set con=Server.CreateObject("ADODB.Connection")
con.open="Driver={SQL SERVER};Server=FILESERVER;Database=OA;UID=sa;PWD=kschina918;"
set ros=Server.CreateObject("ADODB.RecordSet")
ros.open "select * from jlb_ylt where gdwj='"& Request.form("sgdwj") &"'",con,2,3
%>
<%
ros.addnew //原因好象在这里 这好象是添加 但不知道怎么修改
ros("gdwj")=request.form("sgdwj")
ros("yqwcrq")=request.form("syqwcrq")
ros("sjwcrq")=request.form("ssjwcrq")
ros("sjr")=request.form("ssjr")
ros("sh")=request.form("ssh")
ros("jsbw")=request.form("sjsbw")
ros.update
%>
<%
ros.close
set ros=nothing
con.close
set con=nothing
%>
<p align=center>修改后记录为:</p><br>
<%
dim cbn,rbs
set cbn=Server.CreateObject("ADODB.Connection")
cbn.open="Driver={SQL SERVER};Server=FILESERVER;Database=OA;UID=sa;PWD=kschina918;"
set rbs=Server.CreateObject("ADODB.RecordSet")
rbs.open "select * from jlb_ylt where gdwj='"& Request.form("sgdwj") &"'",cbn,1,1
%>
<table border=1 align="center">
<tr>
<td width=100 align=center>归档文件</td>
<td width=100 align=center>预期完成日</td>
<td width=100 align=center>实际完成日</td>
<td width=100 align=center>设计人</td>
<td width=100 align=center>审核</td>
<td width=200 align=center>技术备忘</td>
</tr>
<%
Do while Not rbs.Eof
%>
<tr>
<td width=100 align=center><%=rbs(0) %></td>
<td width=100 align=center><%=rbs(1) %></td>
<td width=100 align=center><%=rbs(2) %></td>
<td width=100 align=center><%=rbs(3)%></td>
<td width=100 align=center><%=rbs(4)%></td>
<td width=200 align=center><%=rbs(5)%></td>
</tr>
<% If not rbs.Eof Then rbs.MoveNext
Loop
%>
</table>
<%
rbs.close
set rbs=nothing
cbn.close
set cbn=nothing
%>
<br><br><br><br>
<table align=center width=60% color=green>
<tr>
<td align=center><a href="jlb_ylt_edit_ch.asp">返回至信息查询</a></td>
<td align=center><a href="jlb_ylt_edit.asp">返回至主页</a></td>
</tr>
</table>
<br>
<hr width=80% color=green>
</body>
</html>
ros.addnew //原因好象在这里 这好象是添加 但不知道怎么修改
请大家帮我看看
谢谢了
相关推荐
contiki学习笔记(七)contiki系统
八、contiki进程 contiki编程的核心文档 contiki的一个进程由一个单一的原线程组成。 Files file process.c contiki进程内核的实现。 file process.h contiki进程接口的头文件。 Return values #define PROCESS_ERR_OK 0 返回值,指示操作成功。 #define PROCESS_ER...
Contiki开发日记·1——Instant-contiki环境搭建
Instant-contiki环境搭建一、Contiki简介二、Instant-contiki系统2.1 Instant-contiki下载2.2 解压并启动系统2.3 测试Cooja三、 总结 一、Contiki简介 Contiki系统是一个开源的、高度可移植的多任务操作系统,适用于嵌入式系统和无线传感器网络。支持IPv4/IPv6通信,提供了uIPv6协议栈、IPv4协议栈(uIP),支持TCP/UDP,还提供了线程、定时器、文件系统等功能;采用C语言开发,针对小内存微控制器设计,典型的contiki只
Contiki学习——HelloWorld
背景要研究的课题内容正好需要Contiki中的cooja仿真器进行仿真,但是实际上,关于Contiki这个平台的manual确实没有找到,这导致了很多研究者的实验困难,面对这一情况,我个人也只能摸着石头过河,将每次探索的新发现与大家进行交流。HelloWorld这个小demo,在Contiki的官网是有放出来的,我对这个Get Start这个部分进行重现,并用中文写一下相应的步骤。1. 下载所需要的
基于MATLAB的复合弹性模量分析,采用混合法则,结合纤维体积分数变化和图形结果。.zip
1.版本:matlab2014a/2019b/2024b 2.附赠案例数据可直接运行。 3.代码特点:参数化编程、参数可方便更改、代码编程思路清晰、注释明细。 4.适用对象:计算机,电子信息工程、数学等专业的大学生课程设计、期末大作业和毕业设计。
基于MATLAB的自适应纯追踪曲线跟踪机器人仿真,采用多路径、自适应速度控制和图形界面可视化。.zip
1.版本:matlab2014a/2019b/2024b 2.附赠案例数据可直接运行。 3.代码特点:参数化编程、参数可方便更改、代码编程思路清晰、注释明细。 4.适用对象:计算机,电子信息工程、数学等专业的大学生课程设计、期末大作业和毕业设计。


