jobno=request.form("jobno")set rstemp=("select jobno_id from sale where jobno='"&jobno&"' order by id desc")’取出数据库中同一工号下最大的工号idtemp_jobno=cint(right(rstemp("jobno") ,3) )+1 '取出后面3位工号id编号转为数字格式并加1new_jobno_id=jobno&temp_jobno ‘生成新的工号编号 有问题加我3571393共同探讨...