I have been toying around with the idea of enabling an html and javascript file to read MS Access database records. I understand that the database will have to sit on the client for the html/JS file to read it. However, after some successful tests, I notice that just the front-end of the Access database has to be available on the client for the html/JS file to read the tables, as long as the MS Access front-end can access the tables, which would be split and located on a networked server.
With that said, I was able to add records to the MS Access database with the following code:
function AddRecord()
{
var adoConn = new ActiveXobject("ADODB.Connection");
var adoRS = new ActiveXobject("ADODB.Recordset");
adoConn.Open("Provider=Microsoft.Jet.OLEDB.4.0;Data Source='C:\\... to Db front-end'");
adoRS.Open("Select SomeTable.* From SomeTable", adoConn, 1, 3);
alert('adoRs');
adoRS.Close();
adoConn.Close();
}
This function is executed with an html textbox and button. Instead of adding a record, I was wondering if anyone knew how to display an MS Acecess record either in an html textbox or alert box using a Javascript function?