Can we do the connectivity in javascript with access?
If yes tell me the process please please !!!!!
If yes tell me the process please please !!!!!
function GetValue(strDate,Value)
{
var strReturnValue = null;
var axoConnection = new ActiveXObject("ADODB.Connection");
var strConnection = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source = C:/Inetpub/wwwroot/test;Extended Properties = FoxPro 3.0;";
var axoRecordSet = new ActiveXObject("ADODB.Recordset");
var SQL = "SELECT " + Value +" FROM PW030 WHERE L_PNR='" + g_PersonalNumber + "' AND L_DATUM=" + strDate;
axoConnection.Open(strConnection);
axoRecordSet.Open(SQL, axoConnection);
axoRecordSet.Close();
axoConnection.Close();
return strReturnValue;
}
Comment