| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1494 人关注过本帖
标题:Microsoft JET Database Engine (0x80040E07)
取消只看楼主 加入收藏
fengmnll
Rank: 1
等 级:新手上路
帖 子:79
专家分:3
注 册:2008-11-6
结帖率:85.71%
收藏
已结贴  问题点数:5 回复次数:2 
Microsoft JET Database Engine (0x80040E07)
edit_student.asp
 <a href="modify_student.asp?student_id=<%=rs("student_id")%>">修改</a>
modify_student.asp
<%
dim sql,rs,student_id
student_id=request.QueryString("student_id")
sql="select * from student where student_id="&student_id&""
set rs=conn.execute(sql)
%>


Microsoft JET Database Engine (0x80040E07)
标准表达式中数据类型不匹配。congedit_student.asp转到modify_student.asp的时候出现的错误,我设置的student_id是文本型的.谢谢,不知道什么地方出错了呢?

搜索更多相关主题的帖子: Microsoft Engine Database JET 
2010-05-21 09:33
fengmnll
Rank: 1
等 级:新手上路
帖 子:79
专家分:3
注 册:2008-11-6
收藏
得分:0 
回复 2楼 gupiao175
恩,刚才那个问题解决了
<!--#include file="conn.asp"-->
<%
 Dim sql,student_id,student_name,age,in_time,sex,major
 student_id=request.Form("student_id")
 student_name=request.Form("student_name")
 age=request.Form("age")
 in_time=request.Form("in_time")
 sex=request.Form("sex")
 homeplace=request.Form("homeplace")
 major=request.Form("major")
 set rs=server.CreateObject("ADODB.Recordset")
sql="update [student] set  student_id='"&student_id&"',student_name='"&student_name&"', sex='"&sex&"' ,age='"&age&"',in_time='"&in_time&"', homeplace='"&homeplace&"' ,major='"&major&"' where student_id="&student_id&""
 conn.execute(sql)
response.write "<script language=javascript>alert(记录添加成功!');history.back(edit_student.asp)</script>"
 response.Redirect("edit_student.asp")
 response.End()  
%>
这个有该怎么修改呢?谢谢版主

2010-05-21 10:11
fengmnll
Rank: 1
等 级:新手上路
帖 子:79
专家分:3
注 册:2008-11-6
收藏
得分:0 
回复 4楼 gupiao175
恩好的,谢谢,调试好了
2010-05-21 10:43
快速回复:Microsoft JET Database Engine (0x80040E07)
数据加载中...
 
   



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

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