I am new to JS, so any help would be greatly appreciated.
The following code successfully inserts the data, but gives me an error.
Could anyone help me to what I am not doing or something I am missing?
Thanks again,
Joey
-Joey
The following code successfully inserts the data, but gives me an error.
Code:
<%@LANGUAGE="JAVASCRIPT" CODEPAGE="1252"%> <% var strConnection = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=\\\\T03web01\\AreaWebs\\" +
"Quality\\QA\\Systems\\TPD\\database\\tpd.mdb"; //Connection String var adoConnection = Server.CreateObject("ADODB.Connection");
var nu_m = parseInt(4);
var lev = String("qe");
var mySQL = "INSERT INTO access_Levels ([value], [level]) VALUES ("+nu_m+",'"+lev+"')"; adoConnection.Open(strConnection);
var adoRecordset = Server.CreateObject("ADODB.Recordset");
adoRecordset=adoConnection.Execute(mySQL);
adoRecordset.Close();
adoRecordset = null;
adoConnection.Close();
adoConnection = null;
%>
Could anyone help me to what I am not doing or something I am missing?
Thanks again,
Joey
-Joey