AnsiString SQLStr="";
SQLStr.sprintf("select * from result where rec_date = '%s' order by number\0",szNalja);
Äõ¸®¹®¿¡ °Ë»ö Á¶°ÇÀ̳ª Ç¥½Ã ³»¿ëÀ» Table°ú ¿¬°èÇÏ¿© ÀÛ¼º
ÀÌ°ÍÀ» ¼¹ö¿¡ Äõ¸®Áú ÇÏ¿© ÇÊ¿ä Á¤º¸¸¦ ÀÐ¾î ¿Å
SQLQuery1->Close();
SQLQuery1->SQL->Clear();
SQLQuery1->SQL->Add(SQLStr) ;
try
{
SQLQuery1->ExecSQL();
ClientDataSet1->Close();
ClientDataSet1->Open();
ClientDataSet1->First();
for(int i=0;i<ClientDataSet1->RecordCount;i++){
if(ClientDataSet1->Fields->Fields[8]->AsString !="1"){
break;
}
ClientDataSet1->Next();
}
//¿©±â¿¡ ÀÐÀº ·¹ÄÚµå Ç¥½Ã ·çƾ Ãß°¡
}
catch(...)
{
Application->MessageBox(
L"·¹ÄÚµå µ¥ÀÌÅ͸¦ Àоî¿ÀÁö ¸øÇß½À´Ï´Ù.",
L"¼¹öÁ¢±Ù½ÇÆÐ", IDOK);
}