Here you are.
You will need to modify it a little to suit your needs.
VB Code:
  1. Private Sub update_tblPopulatedPlaces_fromXML()
  2.         Dim dsXMLImport As New DataSet
  3.         myConn = New OleDbConnection(strAccessConn)
  4.         Dim strSQL As String = "INSERT INTO tblPopulatedPlaces(AdminBdry1_ID,AdminBdry2_ID,AdminBdry3_ID,AdminBdry4_ID,PPname,uid_Created,date_Created,uid_Modified,date_Modified)" & _
  5.         " VALUES(@AdminBdry1_ID,@AdminBdry2_ID,@AdminBdry3_ID,@AdminBdry4_ID,@PPname,@uid_Created,@date_Create  d,@uid_Modified,@date_Modified)"
  6.         Dim da As New OleDbDataAdapter()
  7.         da.AcceptChangesDuringFill = False
  8.         da.InsertCommand = New OleDbCommand(strSQL, myConn)
  9.         Try
  10.             myConn.Open()
  11.             dsXMLImport.ReadXml(Me.tbFilePath.Text)
  12.             With da.InsertCommand.Parameters
  13.                 For i As Integer = 0 To dsXMLImport.Tables(1).Rows.Count - 1
  14.                     drPublic = dsXMLImport.Tables(1).Rows(i)
  15.                     .AddWithValue("@AdminBdry1_ID", drPublic(1))
  16.                     .AddWithValue("@AdminBdry2_ID", drPublic(2))
  17.                     .AddWithValue("@AdminBdry3_ID", drPublic(3))
  18.                     .AddWithValue("@AdminBdry4_ID", drPublic(4))
  19.                     .AddWithValue("@PPname", drPublic(5))
  20.                     .AddWithValue("@uid_Created", drPublic(6))
  21.                     .AddWithValue("@date_Created", drPublic(7))
  22.                     .AddWithValue("@uid_Modified", drPublic(8))
  23.                     .AddWithValue("@date_Modified", drPublic(9))
  24.                 Next i
  25.             End With
  26.             da.Update(dsXMLImport, dsXMLImport.Tables(1).TableName)
  27.         Catch exSQL As OleDbException
  28.             ShowErrorBoxOK("update_tblPopulatedPlaces_fromXML():", exSQL.Message, My.Resources.myStrings.capSQLError)
  29.         Catch ex As Exception
  30.             ShowErrorBoxOK("update_tblPopulatedPlaces_fromXML():", ex.Message, My.Resources.myStrings.capGeneralError)
  31.         Finally
  32.             myConn.Close()
  33.             myConn.Dispose()
  34.             da.Dispose()
  35.         End Try
  36.     End Sub