title: Syntax error in INSERT INTO statement
body: <p>I am trying to insert some information in an MS Access database.
  In my database I have the following columns and types:</p>
  
  <pre><code>log_order - Autonumber (I need this to keep the order where inserted in the db),
  userID - Text,
  time - Text,
  date_ - text,
  message - Text.
  </code></pre>
  
  <p>My query:</p>
  
  <pre><code>command.CommandText = "INSERT INTO logs(userID, time, date_, message) VALUES ('"+verifiedUser+"', '"+msg_time+"', '"+msg_date+"', '"+msg+"')";        
  
  OleDbDataReader reader = command.ExecuteReader();
  </code></pre>
  
  <p>The error that I get:</p>
  
  <blockquote>
    <p>System.Data.OleDb.OleDbException: 'Syntax error in INSERT INTO statement.'</p>
  </blockquote>
  
  <p>I tried several posts but no post helped me. I believe there might be a problem with the autonumber column (<code>log_order</code>). Because of what I remember I don't have to include it in the query.</p>
  
  <p>PS: I know I have to pass the values as parameters.</p>
  
  <p>Thank you in advance</p>