title: Why this error .. command text was not set to command object
body: <p>conn.Open()</p>
  
  <pre><code>    Try
          Dim update As New OleDbCommand
          update.Connection = conn
          update.CommandText = " UPDATE O_name SET fname= '" &amp; Name1.Text &amp; "' WHERE ID = '" &amp; ID.Text &amp; "'"
          update.ExecuteNonQuery()
          MsgBox("done")
      Catch ex As Exception
          MsgBox(ex.Message.ToString)
      End Try
  
      conn.Close()
  </code></pre>
  
  <p>there is always Error 
  " Command Text was not set to command object " 
  what's the reason 
  please don't talk about parametrized query cause i'm asking about this specifically</p>