title: Syntax error in INSERT INTO statement (Microsoft Access)
body: <p>I am using Visual Studio 2010 connected to an Access database (2010).</p>
  
  <p>I created a button to add items from textboxes to the database and I'm getting the error "Syntax error in INSERT INTO statement"</p>
  
  <pre><code>    protected void upload_Click(object sender, EventArgs e)
  {
      if (FileUpload3.HasFile)
      {
          try
          {
              string filename = Path.GetFileName(FileUpload3.FileName);
              FileUpload3.SaveAs(Server.MapPath("images") + "/" + filename);
              Picture.Text = "images/" + filename;
              Label2.Text = "";
          }
          catch (Exception ex)
          {
  
              Label2.Text = "Upload status: The file could not be uploaded. The following error occured: " + ex.Message;
          }
  
  
  
      }
  }
  
  protected void addnewitem_Click(object sender, EventArgs e)
  {
  
  
      AccessDataSource1.InsertCommand = "Insert into RAM (RAM Name, picture) values ('" + name.Text.ToString() + ",'" + Picture.Text.ToString() + "')";
  
      AccessDataSource1.Insert();
  }
  </code></pre>