title: Getting a syntax error (missing operator) in query expression in C#
body: <p>I am writing a code and getting a syntax error that I dont know from where that comes. This is the code I am using:</p>
  
  <pre><code>string u = "select uniqcode from login where users='" + textBoxX1.Text + "' ";
  </code></pre>
  
  <p>and this is the error I am getting:</p>
  
  <blockquote>
    <p>"Syntax error (missing operator) in query expression ''select uniqcode
    from login where users='someuser' ''."
    (System.Data.OleDb.OleDbException)A System.Data.OleDb.OleDbException
    was thrown: "Syntax error (missing operator) in query expression
    ''select uniqcode from login where users='someuser' ''."</p>
  </blockquote>