Hola gianfranco.
Probá si de este modo te resulta más claro:
Código Delphi
[-]
with ADOQuery1 do
begin
Close;
SQL.Clear;
SQL.Add('SELECT * FROM LIN_ART');
SQL.Add('WHERE COD_LIN = :VALOR1 ');
SQL.Add('AND LIN_DESC = :VALOR2');
Parameters.ParamByName('VALOR1').Value:= Edit1.Text;
Parameters.ParamByName('VALOR2').Value:= Edit2.Text;
Open;
if IsEmpty then
begin
Close;
SQL.Clear;
SQL.Add('INSERT INTO LIN_ART (COD_LIN, LIN_DESC)');
SQL.Add('VALUES(:VALOR1, :VALOR2)');
Parameters.ParamByName('VALOR1').Value:= Edit1.Text;
Parameters.ParamByName('VALOR2').Value:= Edit2.Text;
ExecSQL;
end;
end;
Eso tomando en cuenta los dos campos que has mencionado, si hay más campos para insertar, también los tendrás que incluir en la sentencia SQL.
Saludos.