Hi.
When I add a new entry in a access database via the GUI, the vb.net program must be restartet before I can see the data in the GUI.
1. Why?
2. How to fix it?
Thanks
When I add a new entry in a access database via the GUI, the vb.net program must be restartet before I can see the data in the GUI.
1. Why?
2. How to fix it?
Thanks
VB.NET:
Dim cb As New OleDb.OleDbCommandBuilder(da)
Dim dsNewRow As DataRow
dsNewRow = ds.Tables("MyTabel").NewRow()
dsNewRow.Item("Email") = txtEmail.Text
dsNewRow.Item("Name") = txtName.Text
ds.Tables("MyTabel").Rows.Add(dsNewRow)
da.Update(ds, "MyTabel")