问题依然存在,能帮我解决吗?谢谢!我的QQ是16702426

[复制链接]
查看11 | 回复2 | 2011-1-6 19:34:25 | 显示全部楼层 |阅读模式
set rs=server.createobject("adodb.recordset")
if request("action")="add" then
sql="select * from Product where (ID is null)"
rs.open sql,conn,1,3
rs.addnew
call SaveData()
rs.update
ID=rs("ID")
rs.close
set rs=nothing
elseif request("action")="Modify" then

if ID"" then
sql="select * from Product where id=" & ID
rs.open sql,conn,1,3
if not (rs.bof and rs.eof) then

call SaveData()

rs.update

rs.close

set rs=nothing

else

founderr=true

errmsg=errmsg+"
  • 找不到此产品,可能已经被删除。"

    call WriteErrMsg()
    end if
    else
    founderr=true
    errmsg=errmsg+"
  • 不能确定产品ID的值"
    call WriteErrMsg()
    end if
    else
    founderr=true
    errmsg=errmsg+"
  • 没有选定参数"
    call WriteErrMsg()
    end if

  • 回复

    使用道具 举报

    千问 | 2011-1-6 19:34:25 | 显示全部楼层
    我是数学老师,愿意帮你,我是西安的,你是哪里的?我加你吧
    回复

    使用道具 举报

    千问 | 2011-1-6 19:34:25 | 显示全部楼层
    我不是叫你测试了吗?
    回复

    使用道具 举报

    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    主题

    0

    回帖

    4882万

    积分

    论坛元老

    Rank: 8Rank: 8

    积分
    48824836
    热门排行