sqlzap="select * from STRIPE WHERE STRIPE = '"+RugidK+"' and (WORKID2 BETWEEN '"+c+"' AND '"+po+"')"; DataSource1->DataSet = Query1; Query1->SQL->Clear(); Query1->SQL->Add(sqlzap); Query1->Active = true;
I use about such requests. It is necessary to process if sql did not find anything. Must be something like if(Query1->XXXX!=0){}