28,391
社区成员
发帖
与我相关
我的任务
分享
sqlstr="select [MachineID] from [MachineList] where [MachineID]='"&machineid&"'"
response.write sqlstr
rs.open sqlstr,conn,1,1
response.write err.description
if err or machineid="" or rs.recordcount>0 then
response.write "<script language='javascript'>alert('Found the Error or Duplicate record,Check MachineID Fill and error :"&err.description&"');history.go(-1);</script>"
response.end
end if
rs.close
sqlstr="select machinesn from [machinelist] where machinesn='"&machinesn&"'"
rs.open sqlstr,conn,1,1
if err or machinesn="" or rs.recordcount>0 then
response.write "<script language='javascript'>alert('Found the Error or Duplicate record,Check MachineSN Fill and error :"&err.description&"');history.go(-1);</script>"
response.end
end if
rs.close