when i run the following code the State column in the dataset gets updated, but i can't get it to update with the database. thanx in advance for any help...it's monday what can i say


VB Code:
  1. Private Sub SaveNewShipLog()
  2.         Dim LibInfoAdp As OleDbDataAdapter 'For Library Information Table access
  3.         Dim LibProjAdp As OleDbDataAdapter 'For Project Table access
  4.         Dim ShipLogAdp As OleDbDataAdapter 'For Ship Log Table access
  5.         Dim ShipLstAdp As OleDbDataAdapter 'For Ship Log List Table access
  6.         Dim adoBldr As OleDbCommandBuilder
  7.         Dim adoDs As DataSet
  8.  
  9.         Try
  10.             'Setup the adapters
  11.             LibInfoAdp = New OleDbDataAdapter(Me.BulidShippingLogSQL("library information"), adoCnn)
  12.             LibProjAdp = New OleDbDataAdapter(Me.BulidShippingLogSQL("lib_proj_tbl"), adoCnn)
  13.             ShipLogAdp = New OleDbDataAdapter(Me.BulidShippingLogSQL("ship_log_tbl"), adoCnn)
  14.             ShipLstAdp = New OleDbDataAdapter(Me.BulidShippingLogSQL("shp_log_lstn_tbl"), adoCnn)
  15.  
  16.             'Make sure the adapters that the primary key.
  17.             LibInfoAdp.MissingSchemaAction = MissingSchemaAction.AddWithKey
  18.             LibProjAdp.MissingSchemaAction = MissingSchemaAction.AddWithKey
  19.             ShipLogAdp.MissingSchemaAction = MissingSchemaAction.AddWithKey
  20.             ShipLstAdp.MissingSchemaAction = MissingSchemaAction.AddWithKey
  21.  
  22.             'Fill the dataset.
  23.             adoDs = New DataSet
  24.             LibInfoAdp.Fill(adoDs, "[Library Information]")
  25.             LibProjAdp.Fill(adoDs, "lib_proj_tbl")
  26.             ShipLogAdp.Fill(adoDs, "ship_log_tbl")
  27.             ShipLstAdp.Fill(adoDs, "shp_log_lstn_tbl")
  28.  
  29.             'Test for library information change
  30.             Me.LibraryInfoUpdateTest(LibInfoAdp, adoDs)
  31.  
  32.             'Dim dRow As DataRow = adoDs.Tables("ship_log_tbl").NewRow()
  33.             'dRow("PROJ_ID") = lngPROJ_ID
  34.             'dRow("LIB_TYPE_ID") = 1
  35.             'dRow("SHP_MTH_ID") = 1
  36.             'dRow("NSO_ID") = 1
  37.             'dRow("ship_date") = Today
  38.             'dRow("attetion_of") = "tester"
  39.             'dRow("cd_cs_person") = "tester2"
  40.             'dRow("lst_pricing") = True
  41.  
  42.             'adoDs.Tables("ship_log_tbl").Rows.Add(dRow)
  43.  
  44.             'adoBldr = New OleDbCommandBuilder(ShipLogAdp)
  45.             'ShipLogAdp.Update(adoDs, "ship_log_tbl")
  46.             'adoBldr.Dispose()
  47.             'adoBldr = Nothing
  48.  
  49.         Catch ex As Exception
  50.             MsgBox(ex.Message)
  51.         End Try
  52.     End Sub
  53.  
  54.     Private Function LibraryInfoUpdateTest(ByRef adp As OleDbDataAdapter, ByVal ds As DataSet) As Boolean
  55.         Dim dRow As DataRow = ds.Tables("[Library Information]").Rows(0)
  56.         Dim bld As New OleDbCommandBuilder(adp)
  57.  
  58.         Debug.Write(dRow("State"))
  59.         dRow("State") = "PA"
  60.         Debug.Write(dRow("State"))
  61.         dRow.AcceptChanges()
  62.         adp.Update(ds, "[Library Information]")
  63.         bld.Dispose()
  64.         bld = Nothing
  65.     End Function
  66.  
  67.     Private Function BulidShippingLogSQL(ByVal DB_Table_Name As String) As String
  68.         Select Case DB_Table_Name.ToLower
  69.             Case "library information"
  70.                 Return "SELECT " & _
  71.                             "[Library Information].ID, " & _
  72.                             "[Library Information].[Library Name], " & _
  73.                             "[Library Information].Address1, " & _
  74.                             "[Library Information].Address2, " & _
  75.                             "[Library Information].City, " & _
  76.                             "[Library Information].State, " & _
  77.                             "[Library Information].Zip, " & _
  78.                             "[Library Information].[Library Type] " & _
  79.                        "FROM " & _
  80.                             "[Library Information] " & _
  81.                        "WHERE " & _
  82.                             "[Library Information].ID = " & lngLIB_ID
  83.             Case "lib_proj_tbl"
  84.                 Return "SELECT * " & _
  85.                        "FROM " & _
  86.                             "lib_proj_tbl " & _
  87.                        "WHERE " & _
  88.                             "PROJ_ID = " & lngPROJ_ID & " AND LIB_ID = " & lngLIB_ID
  89.             Case "ship_log_tbl"
  90.                 Return "SELECT * FROM ship_log_tbl"
  91.             Case "shp_log_lstn_tbl"
  92.                 Return "SELECT * FROM shp_log_lstn_tbl"
  93.             Case Else
  94.  
  95.         End Select
  96.     End Function