| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 595 人关注过本帖
标题:ADODB.Recordset (0x800A0BB9) 错误
取消只看楼主 加入收藏
fengmnll
Rank: 1
等 级:新手上路
帖 子:79
专家分:3
注 册:2008-11-6
结帖率:85.71%
收藏
 问题点数:0 回复次数:1 
ADODB.Recordset (0x800A0BB9) 错误
<%
      dim  sql,student_id,student_name,age,sex,in_time,homeplace,major
      student_id=Trim(Request.Form("student_id"))
      student_name=Trim(Request.Form("student_name"))
      sex=Trim(Request.Form("sex"))
      age=Trim(Request.Form("age"))
      in_time=Trim(Request.Form("in_time"))
      homeplace=Trim(Request.Form("homeplace"))
      major=Trim(Request.Form("major"))
      set urs=Server.CreateObject("ADODB.Recordset")
      sql="select student_id,student_name,sex,age,in_time,homeplace,major from student where student_name='"&student_name&"'"
      urs.open sql,conn,1,3
      if not rs.eof  then
             response.Write"<script> alert('此学生已存在.')</script>;history.back();"
             response.End
     else
            set rs="nothing"
            set rs=Server.CreateObject("ADODB.Recordset")
            sql="Selcet student_id,student_name,sex,age,in_time,homeplace,major  from student"
            urs.open sql,conn,1,3// 第 12 行
            urs.addnew
            urs("student_id")=student_id
            urs("student_name")=student_name
            urs("sex")=sex
            urs("in_time")=in_time
            urs("homeplace")=homeplace
            urs("major")=major
            urs.update
            urs.close
            set urs=nothing
     end if
 
  set urs=nothing
  response.Write "<script language=javascript>{window.alert('记录添加成功!请点击“确定”');window.location.href='add_student.asp';}</script>"                        
%>
ADODB.Recordset (0x800A0BB9)
参数类型不正确,或不在可以接受的范围之内,或与其他参数冲突。
/biyesheji/admin/save.asp, 第 12 行
搜索更多相关主题的帖子: Recordset ADODB 
2010-05-19 14:51
fengmnll
Rank: 1
等 级:新手上路
帖 子:79
专家分:3
注 册:2008-11-6
收藏
得分:0 
麻烦大家看看为什么出错了,谢谢
2010-05-19 14:51
快速回复:ADODB.Recordset (0x800A0BB9) 错误
数据加载中...
 
   



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

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