I have played with this and been all over the place over the past 3 days. I cannot get the record to insert into the Access table. Please help me to understand what i am doing incorrectly.

VB Code:
  1. Dim cn As OleDbConnection = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Application.StartupPath & "\EQ2.mdb")
  2.         Try
  3.             cn.Open()
  4.         Catch ex As Exception
  5.             MsgBox("Failed to open DB")
  6.         End Try
  7.  
  8.         Dim cmd As OleDbCommand
  9.         Dim sStr As String
  10.         Dim icount As Integer
  11.  
  12.         Try
  13.             sStr = "insert into armor(ItemName, Slot)"
  14.             sStr += "Values('" & name & "', '" & slot & "')"
  15.             cmd = New OleDbCommand(sStr, cn)
  16.             icount = cmd.ExecuteNonQuery
  17.             MsgBox(icount) 'I get a 1 here
  18.  
  19.         Catch ex As Exception
  20.             MsgBox(Err.Number & vbCrLf & Err.Description)
  21.         End Try
  22.         cn.Close()
  23.         cn.Dispose()
  24.         da.Dispose()

Or if there is a better way to insert records into an access database I am all ears.

Thank you in advance,

dminder