hi,
i have a code that i cant make it work
errorCode:string myName = "homerfavenir"; string source = "Provider=Microsoft.Jet.OLEDB.4.0;" + "Data Source=user.mdb"; string input = @"INSERT INTO Users (firstname) values (" + myName + ")"; OleDbConnection conn = new OleDbConnection(source); conn.Open(); // Do something useful OleDbCommand cmd = new OleDbCommand(input,conn); cmd.ExecuteNonQuery(); conn.Close();
thanksCode:No value given for one or more required parameters.




Reply With Quote