on error resume next connstr="DBQ="+server.mappath("/new/new.mdb")+";DefaultDir=;DRIVER={Microsoft Access Driver (*.mdb)};" set conn=server.createobject("ADODB.CONNECTION") conn.open connstr dim sql dim rs sql="select top 5 * from learning order by articleid desc" Set rs= conn.execute(sql)