js和acess的问题?高手近来看看
<script language="javascript" runat="server">function ss()
{
var conn=Server.CreateObject("ADODB.Connection");
var connstr="Provider=Microsoft.Jet.Oledb.4.0;Data Source=+Server.Mappath("database/costume.mdb")";
conn.open("connstr");
var rs = new ActiveXObject("ADODB.Recordset");
var sql="select * from [lable1] where id=0";
rs.open(sql, conn,1,2);
document.write(rs(0) + " " + rs(1));
rs.close();
rs = null;
conn.close();
conn = null;
}
</script>
提示有错误 请问如何解决 我市用的