Ciao a tutti!
Sono nuovo sia nel forum che di VB2008.
Vi chiedo aiuto perchè, con il codice che vi posto, non riesco a salvare correttamente il dataset appena "ripulito" nella fonte dati sottostante :

Private Sub Btn_cancella_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Btn_cancella.Click

Dim myconn As New OleDb.OleDbConnection
myconn.ConnectionString = My.Settings.Db1_PROVA_SCAIConnectionString


Dim dat_adapt As New OleDb.OleDbDataAdapter("SELECT * FROM VIAGGI", myconn)
Dim a
Dim dset As New DataSet
Dim cmdbuild As New OleDbCommandBuilder(dat_adapt)

dat_adapt.UpdateCommand = cmdbuild.GetUpdateCommand
dat_adapt.DeleteCommand = cmdbuild.GetDeleteCommand
dat_adapt.InsertCommand = cmdbuild.GetInsertCommand

myconn.Open()

dset.Clear()
dat_adapt.Fill(dset, "VIAGGI")

a = dset.Tables("VIAGGI").Rows.Count



dset.Tables("VIAGGI").Rows.Clear()
dset.Tables("VIAGGI").AcceptChanges()


dat_adapt.Update(dset, "VIAGGI")



myconn.Close()



End Sub

... anzi, per essere preciso, mi succede che, aprendo un form con una datagridview collegata alla tabella VIAGGI, ottengo una tabella "riempita" e non vuota.

...Help me... grazie in anticipo