Курсовая работа: Разработка базы данных "Отдел сбыта"
Form1. ADOQuery1. SQL. Text: = 'select '+sel+' from '+from
else
if (group='') and (order='') then
begin
Form1. ADOQuery1. SQL. Text: = 'select '+sel+' from '+from+' where '+where;
end
else
if (having='') and (order='') then
begin
Form1. ADOQuery1. SQL. Text: = 'select '+sel+' from '+from+' where '+where+
' group by '+group;
end
else
if order='' then
begin
Form1. ADOQuery1. SQL. Text: = 'select '+sel+' from '+from+' where '+where+
' group by '+group+' having '+having;
end
else
begin
Form1. ADOQuery1. SQL. Text: = 'select '+sel+' from '+from+' where '+where+
' group by '+group+' having '+having+' order by '+order;
end;
Form1. ADOQuery1. Active: = true;
Form2. Visible: =false;
end;
end;
// ---------------------------------------------------------------------
procedure TForm2. Edit5Change (Sender: TObject);