数据库名为mdb1.mdb
你的代码
strConn = "driver={MicroSoft Access Driver (*.mdb)};dbq=" & Server.Mappath("mdb.mdb")
还有!
if scrollaction="上一页" then
pageno=pageno-1
end if
if scrollaction="下一页" then
pageno=pageno-1
end if
改成
if scrollaction="上一页" then
pageno=pageno-1
end if
if scrollaction="下一页" then
pageno=pageno+1
end if
还有!
total=int(rs.recordcount/pgsz*-1)
改成
total=int(rs.recordcount/pgsz*-1)*-1
还有!
do while not (rs is nothing)
rowcount=rs.pagesize
do while not rs.eof and rowcount > 0
if n=1 then
Response.Write"
"
else
Response.Write"
"
end if
n=1-n
改成
RowCount=RS.PageSize
Do While Not RS.EOF and rowcount > 0
n=1-n
还有
rowcount=rowcount-1
rs.movenext
loop
set rs=rs.nextrecordset
loop
rs.close
set rs=nothin
改成
RowCount=RowCount-1
RS.MoveNext
Loop
Conn.Close
set rs=nothing
set Conn=nothing