bonsoir,
Je veux enregistrer un Row dans une base Sql.
Mon DataSet est Designer, et voici mon code :
Aucune erreur se produit,
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 Dim dtsetCodexVpDb As New dtsetCodexVpDb() Dim tabadpCodex_TPr_Col As New dtsetCodexVpDbTableAdapters.tabadpCodex_TPr_Col() Dim dattabNewTPrCol As New dtsetCodexVpDb.dattabCodex_TPr_ColDataTable Dim rowNewTPrColLigne As DataRow = dattabNewTPrCol.NewRow() With rowNewTPrColLigne .Item("TPr_Col_NAArbHier") = _lngTPrColNAArbHier .Item("TPr_Col_Position") = _intTPrColPosition dattabNewTPrCol.Rows.Add() tabadpCodex_TPr_Col.Update(dtsetCodexVpDb.dattabCodex_TPr_Col) end with
Mais les données ne sont pas enregistrées dans la base![]()
Partager