This artilce explains how to connect and get data from an Access database in C# and ADO.NET.
These are very simple steps to create and connect an Access database in C#.
cmd.CommandText = "insert into student values(" + this.textBox1.Text + ",'" + this.textBox2.Text + ",'" + this.textBox3.Text + ",'" + this.textBox4.Text + "');";int temp = cmd.ExecuteNonQuery();if (temp > 0){ MessageBox.Show("Record Added");}else{ MessageBox.Show("Record not Added");}mycon.Close();
Pro WPF: Windows Presentation Foundation in .NET 3.0