Bonjour,
Ma table "Panier" ne se met pas à jour
Il n' y a pas de message d'erreur
Pouvez vous m'indiquer ce qui ne va pas?
Merci à tous
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Dim strSQL1 As String Dim cn As New OleDbConnection() cn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\bd1.mdb" strSQL1 = "SELECT * FROM Panier" Dim bb As New OleDbDataAdapter(strSQL1, cn) Dim aaa As OleDbCommand = cn.CreateCommand() aaa.CommandText = "UPDATE Panier SET Calories = 100" cn.Open() aaa.ExecuteNonQuery() cn.Close() bb.Update(Bd1DataSet.Tables("Panier")) End Sub
Partager