Курсовая работа: База данных "Магазин по продаже дисков"
ADOQuery1->ExecSQL();
ADOQuery1->Open();
ComboBox3->Clear();
Edit5->Clear();}
else
{if(RadioButton4->Checked)
{ADOQuery1->SQL->Clear();
ADOQuery1->SQL->Add("SELECT * FROM Tab1 WHERE [Группа] "+ComboBox4->Text+"\""+ComboBox8->Text+"\";");
ADOQuery1->ExecSQL();
ADOQuery1->Open();
ComboBox4->Clear();
ComboBox8->Clear();}
else
{if(RadioButton5->Checked)
{ADOQuery1->SQL->Clear();
ADOQuery1->SQL->Add("SELECT * FROM Tab1 WHERE [Количество] "+ComboBox5->Text+" "+Edit7->Text+";");
ADOQuery1->ExecSQL();
ADOQuery1->Open();
ComboBox5->Clear();
Edit7->Clear();}
else
{if(RadioButton6->Checked)
{ADOQuery1->SQL->Clear();
ADOQuery1->SQL->Add("SELECT * FROM Tab1 WHERE [Закупочная цена] "+ComboBox6->Text+" "+Edit8->Text+";");
ADOQuery1->ExecSQL();
ADOQuery1->Open();
ComboBox6->Clear();
Edit8->Clear();}
else