I can't add infromation to my Projet.mdb ! please help me ! this is my code
Try
Dim ConStr As String = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source = C:\projet.mdb"
Dim Save As New OleDbCommand
Dim Conn As New OleDbConnection(ConStr)
Save.CommandText = "INSERT INTO Client(Nom,Prenom,Adresse,Téléphone,date) VALUES(@p1,@p2,@p3,@p4,@p5)"
Save.Parameters.AddWithValue("@p1", TextBox1.Text)
Save.Parameters.AddWithValue("@p2", TextBox2.Text)
Save.Parameters.AddWithValue("@p3", TextBox3.Text)
Save.Parameters.AddWithValue("@p4", TextBox4.Text)
Save.Parameters.AddWithValue("@p5", DateTimePicker1.Text)
Save.Connection = Conn
Conn.Open()
Save.ExecuteNonQuery()
MsgBox("Ajout réussi ")
frm1.Show()
Catch ex As Exception
Exit Sub
End Try