The call to CreateDatSet is in the "new record" bit of the code, to create a
blank/empty dataset.  seeing as the CDS already has persistent fields, won't
it use them instead of the tqueries?

----- Original Message -----
From: Martin Ease <[EMAIL PROTECTED]>

> Don't call CDS.CreateDataSet, just call CDS.Open, this will open the
linked
> query and create the data set based on Tquery's persistent field def's.
>
> If you have a problem with this approach try adding the TfieldDefs to your
> CDS, but not both!


---------------------------------------------------------------------------
  New Zealand Delphi Users group - Database List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to