Subject | Re: [IBO] TIBOQuery + TClientDataSet = EDatabaseError |
---|---|
Author | kokok_kokok |
Post date | 2011-09-20T15:57:34Z |
In a form, insert one TIBODatabase, TDataSetProvider, one TClientDataSet, and one TIBOQuery.
Enter the properties of IBODatabase1 and tie the IBOQuery1 and IBODatabase1.
Then, in the source:
DataSetProvider1->DataSet=IBOQuery1;
ClientDataSet1->SetProvider(DataSetProvider1);
IBOQuery1->SQL->Text="SELECT COUNT(*) AS RECORDS FROM ORDERD";
ClientDataSet1->Open();
It generates a "EDatabaseError" exception, with "Field OrderId not found".
Thank you
Enter the properties of IBODatabase1 and tie the IBOQuery1 and IBODatabase1.
Then, in the source:
DataSetProvider1->DataSet=IBOQuery1;
ClientDataSet1->SetProvider(DataSetProvider1);
IBOQuery1->SQL->Text="SELECT COUNT(*) AS RECORDS FROM ORDERD";
ClientDataSet1->Open();
It generates a "EDatabaseError" exception, with "Field OrderId not found".
Thank you