title: Please advise on how to solve sql logic error near "Ref" syntax error
body: <pre><code> private void ExecuteQquery(string QueryData) 
      {
          SetConnectDB();
          sqlConn.Open();
          sqlCmd = sqlConn.CreateCommand();
          sqlCmd.CommandText = QueryData; 
          sqlCmd.ExecuteNonQuery();
          sqlCmd.Dispose();
          sqlConn.Close();
      }
  </code></pre>
  <p>sqlcmd commandtext = querydata appear to be an issue when i run the program.</p>
  <pre><code>private void btnAddField_Click(object sender, EventArgs e)
      {
          
  
          string QueryData = &quot;Insert into details(Customer Ref, First Name, Last name, Address, Mobile, &quot; + &quot;Email, Gender, DOB, Nationality, Prove)&quot;
                                  + &quot;values('&quot; + btnCustomerReference.Text + &quot;','&quot; + btnFirstName.Text + &quot;','&quot; + btnLastName.Text + &quot;','&quot; +
                                  btnAddress.Text + &quot;','&quot; + btnMobile.Text + &quot;','&quot; + btnEmail.Text + &quot;','&quot; + chkGender.Text + &quot;','&quot; + dateTimePicker1 +
                                  &quot;','&quot; + chkNationality.Text + &quot;','&quot; + chkPOI.Text + &quot;')&quot;;
  
         ExecuteQquery(QueryData);
         UpLoadData();
      }
  </code></pre>
  <p>The error pointed at ExecuteQquery(QueryData). I've tried all kind of method to solve yet no result.</p>
  <p>[command below is declared in instance variable]</p>
  <pre><code>public SQLiteConnection sqlConn;
      public SQLiteCommand sqlCmd;
      public DataTable sqlDT = new DataTable();
      public DataSet DS = new DataSet();
      public SQLiteDataAdapter DB;
  </code></pre>