SELECT @strsql='SELECT TOP '+ CONVERT(NVARCHAR(100),@Inp_TopRecord) +'a.confirm_date '+ @strsql
SELECT @strsql=@strsql + ' ORDER BY a. customer_code asc'
rsPageCount=rs("PageCount") '得到总记录数
if rsPageCount mod pageview = 0 then '计算总页数
n = rsPageCount\pageview
else
n = rsPageCount\pageview+1
end if
set rs = rs.nextrecordset
i=0
if not rs.eof then
rs.Pagesize = pageview
rs.absolutepage = page
end if