Hey all, I am having trouble with the following connection:
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 mySQL = "INSERT INTO users (user_Id, tm_Number, lname, fname, password, Access) Values ('test',12345,'testfirst','testlast','vader2',1)
";
adoConnection.Open(strConnection);
var adoRecordset = Server.CreateObject("ADODB.Recordset");
adoRecordset=adoConnection.Execute(mySQL);
When I do the same string for delete or update it works! I cannot add a new record. Any ideas anyone?
-Joey
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 mySQL = "INSERT INTO users (user_Id, tm_Number, lname, fname, password, Access) Values ('test',12345,'testfirst','testlast','vader2',1)
";
adoConnection.Open(strConnection);
var adoRecordset = Server.CreateObject("ADODB.Recordset");
adoRecordset=adoConnection.Execute(mySQL);
When I do the same string for delete or update it works! I cannot add a new record. Any ideas anyone?
-Joey