VB Code:
  1. Private Sub btnDeleteKeepInHistory_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDeleteKeepInHistory.Click
  2.         Dim objTrans As OleDb.OleDbTransaction
  3.         objCmd.CommandText = "INSERT INTO ExEmployee " & _
  4.             "([I/C Number], Name, Department, [P/C Number], [Date Joined], [Date Left], Reason) VALUES " & _
  5.             "('" & txtICNumber.Text & "', '" & txtName.Text & "', '" & txtDepartmentCode.Text & "', '" & txtPunchCardNumber.Text & "', #" & txtDateJoined.Text & "#, #" & txtDateLeft.Text & "#, '" & txtReason.Text & "')"
  6.         OleDbConnection1.Open()
  7.         objTrans = OleDbConnection1.BeginTransaction
  8.         objCmd.Transaction = objTrans
  9.         Try
  10.             objCmd.ExecuteNonQuery()
  11.             Response.Write("SQL1 Passed")
  12.  
  13.             objCmd.CommandText = _
  14.             "UPDATE Employee SET Name=" & _
  15.             "'" & txtEmpty.Text & "' , " & _
  16.             "[IC Number] = '" & txtEmpty.Text & "' , " & _
  17.             "[Date Joined] = '" & txtEmpty.Text & "' , " & _
  18.             "[Confirm Letter] = '" & txtEmpty.Text & "' , " & _
  19.             "[Appointment Letter] = '" & txtEmpty.Text & "' , " & _
  20.             "Status = '" & txtEmpty.Text & "' , " & _
  21.             "Shift = '" & txtEmpty.Text & "' , " & _
  22.             "WHERE [P/C Number]='" & txtPunchCardNumber.Text & "' , "
  23.             objCmd.ExecuteNonQuery()
  24.             Response.Write("SQL2 Passed")
  25.             objTrans.Commit()
  26.         Catch ex As OleDb.OleDbException
  27.             objTrans.Rollback()
  28.             lblErrorMessage.Text = "Transaction Error...!"
  29.             TextBox1.Text = ex.Message
  30.             Return
  31.         Finally
  32.             OleDbConnection1.Close()
  33.         End Try
  34.         dgListEmployee.DataBind()
  35.     End Sub

Anyone can tell me what's wrong with my UPDATE statement, because MSG shows Syntax error in UPDATE statement.