I'm using MSVista, Delphi7, Devart's dbExpress driver 4.70. I drop two TSQLTables (call them A and B), two TDataSetProviders (dspA and dspB), two TClientDataSets (cdsA and cdsB), two TDataSources (dsA and dsB) and two DBGrids (gridA and gridB). Everything is set fine. If I set cdsA.Active to true I see the data in gridA. The same per cdsB.
Now I want to implement the relation
Code: Select all
A JOIN B ON a = b
So I set the stuff as follow (I do everything via graphic tools):
Code: Select all
cdsB.MasterSource := dsA;
cdsB.MasterFields := a;
cdsB.IndexFieldNames := b;
Code: Select all
cdsB.Open
Francesco