title: Adoquery1 missing sql property - Delphi
body: <p>I'm trying to add some data in an access database. But I'm having trouble because this returning the error:</p>
  
  <pre><code>ADOQuery1 missing sql property
  </code></pre>
  
  <p>Realized several modifications to the code and so far nothing has worked .</p>
  
  <p>What am I doing wrong ?</p>
  
  <pre><code>try
      ADOConnection1.Connected := true;
      ADOQuery1.Active := true;
      try
          ///
          AdoQuery1.SQL.Clear;
          ADOQuery1.SQL.Add('INSERT INTO IP (tit_ip, url_ip, im_ip, des_ip) VALUES ( :a, :b, :c, :d )');
          AdoQuery1.parameters.parambyname('a').value := 'sd';
          AdoQuery1.parameters.parambyname('b').value := 'sdsd';
          AdoQuery1.parameters.parambyname('c').value := 'sd';
          AdoQuery1.parameters.parambyname('d').value := 'df';
          AdoQuery1.ExecSQL;
          AdoQuery1.close;
      finally
          ADOQuery1.Active := false;
          ADOConnection1.Connected := false;
      end;
  except
      showmessage('Erro');
  end;
  </code></pre>