Académique Documents
Professionnel Documents
Culture Documents
First, we need to put the libraries where OleDBConnection, OleDBDataAdapter and DataTable is located.
using System.Data;
using System.Data.OleDb;
In the form load, we will declare the connection string for our database
private void Form3_Load(object sender, EventArgs e)
{
string cons="Provider=Microsoft.Jet.Oledb.4.0;Data Source= SPDB.mdb";
con.ConnectionString = cons;