Dear Experts,

I am going to edit what is in the database BUT it still does not work...why..??

VB Code:
  1. Private Sub CommandButton2_Click()
  2.  
  3.     Dim con As ADODB.Connection
  4. Set con = New ADODB.Connection
  5.   con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" _
  6.           & "c:\exercise.mdb"
  7.  
  8.  
  9.  
  10.  
  11.   'update the data
  12.     Dim strSQL As String
  13.     strSQL = "UPDATE item " _
  14.         & " SET Item_Code = " & TextBox1.Text _
  15.         & " WHERE Item_Code = " & Trim$(cmb_item)
  16.        
  17.     strSQL = "UPDATE item " _
  18.         & " SET Description = " & TextBox2.Text _
  19.         & " WHERE Item_Code = " & Trim$(cmb_item)
  20.    
  21.     strSQL = "UPDATE item " _
  22.         & " SET Qty = " & TextBox3.Text _
  23.         & " WHERE Item_Code = " & Trim$(cmb_item)
  24.    
  25.     strSQL = "UPDATE item " _
  26.         & " SET Unit_Price = " & TextBox4.Text _
  27.         & " WHERE Item_Code = " & Trim$(cmb_item)
  28.    
  29.     con.Execute strSQL
  30.    
  31. End Sub

Please have a look and let me know what is wrong with this codes...when I click "Update" it wont happen...

Thanks a lot...

Jennifer