set conn=server.createobject("adodb.connection") conn.open "driver={microsoft access driver (*.mdb)};dbq="&server.mappath("../database/sad.mdb") exec="select * from admin where adname='"+adname set rs=server.createobject("adodb.recordset") rs.open exec,conn,1,1