}
begin
if ListBox1.ItemIndex = -1 then
Exit;
with ADOQuery1 do
begin
if Active then
Active := False;
SQL.Clear;
SQL.Add('Select * From ' + ListBox1.Items[ListBox1.ItemIndex] );
Prepared;
Open;
GetFieldNames(ComboBox1.Items);
GetTableFieldInfo;
end;
end;