TMyQuery, cannot find any fields ...TField.Origin issue ?
Posted: Mon 02 Aug 2010 16:37
Hi
I'm using Delphi 2009 / MyDAC 5.90.0.56 in an IntraWeb 10 project.
I have one TMyQuery with SQL.Text which queries 2 tables through a single inner join. The StrictUpdate property has to be false of course during insert/update due more than one row affected and there are no problems querying both tables through the one TMyQuery except ...
All is OK until I want to use the TMyQuery fields editor. I can declare fields from either table OK and their properties appear in the object inspector eg. I want to set DisplayFormat. When I run the project with a TField(s) declared from either table, it fails with an EDatabase Error : Field (abc123 or whatever) Not Found.
The origin property of each field is empty (I thought MyDAC completed this automatically ?) but even if I try any combination for these eg. databasename.tablename.fieldname or just tablename.fieldname, I can't run the project with any TFields declared ... I'm just told they are not found.
This is probably really simple but at the moment I can't see what's wrong. Please can anyone help with this ? ... thanks
Pete B.
I'm using Delphi 2009 / MyDAC 5.90.0.56 in an IntraWeb 10 project.
I have one TMyQuery with SQL.Text which queries 2 tables through a single inner join. The StrictUpdate property has to be false of course during insert/update due more than one row affected and there are no problems querying both tables through the one TMyQuery except ...
All is OK until I want to use the TMyQuery fields editor. I can declare fields from either table OK and their properties appear in the object inspector eg. I want to set DisplayFormat. When I run the project with a TField(s) declared from either table, it fails with an EDatabase Error : Field (abc123 or whatever) Not Found.
The origin property of each field is empty (I thought MyDAC completed this automatically ?) but even if I try any combination for these eg. databasename.tablename.fieldname or just tablename.fieldname, I can't run the project with any TFields declared ... I'm just told they are not found.
This is probably really simple but at the moment I can't see what's wrong. Please can anyone help with this ? ... thanks
Pete B.