change the connection string and the queries as u prefer.And try it ;)
<html> <head> <title>Entitled Document</title>
<script language="JavaScript"> function Press(){ var cn = new ActiveXObject("ADODB.Connection"); var strConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source = vt1.mdb;Persist Security Info=False"; cn.Open(strConn); var rs = new ActiveXObject("ADODB.Recordset"); var SQL = "select * from Table1"; rs.Open(SQL, cn); while(!rs.eof) {
document.write(rs(1) + "<br>");rs.MoveNext()}
rs.Close(); cn.Close(); } </script>
</head> <body> <input type="button" value="Press" onclick="Press()"> </body></html>
Cheers
You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$20
For Premium members:
$45
For Elite members: