I am currently looking to compact and repair my mdb file (while i close my infopath form which makes the connection to the mdb file using the below code). I currently use the connection parameters as mentioned below. It would be really helpful if someone sheds some light on how this can be achieved in this scenario. JavaScript Function:
function GetConnection(){
_dbConn = new ActiveXObject("ADODB.Connection");
var databaseName = "test.mdb";
var strConn = "Provider=Microsoft.Jet.OLEDB.4.0;Jet OLEDB:Database Password=xxxx;DataSource=c:\\test\\" + databaseName;
_dbConn.Open(strConn);
return _dbConn;
}
Appreciate your help! Thanks!