想到了一种方法,不过感觉不是太好用,你先试试。<%Function Get_NewId()dim i_datesqlstr = "Select top 1 no_id from uright order by no_id desc"Set rs = Conn.Execute(sqlstr)If Not rs.EOF Then
i_date = Year(date()) if Len(Month(date())) = 1 then i_date = i_date& "0"&Month(date()) else i_date = i_date&Month(date())...
我只给个思路,有错误自行更正。<%Function Get_NewId()sqlstr = "Select top 1 no_id from uright order by no_id desc"Set rs = Conn.Execute(sqlstr)If rs.EOF AND rs.BOF ThenGet_Ne...