Unable to insert data into MS Access database from Visual C#
问题 just a beginner in Programing ... I use a class to handle the connectionstring . public class DataBase { public OleDbConnection con = new OleDbConnection(); public OleDbCommand cmd = new OleDbCommand(); public void getConnection() { con.ConnectionString = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\Project\Database\DataBase.mdb"; } private void btnPrint_Click(object sender, EventArgs e) { DataBase db = new DataBase(); db.getConnection(); string Name = txtCostumerName.Text; string