Select records from TDAMemDataTable

Hi,
VirtualQuery doens’t support TDACDSDataTable. It must using Delphi standard dataset

Hi,

why you can’t pass to VirtualQuery memtable.dataset or cdstable.dataset ?
they are TDataset’s descendants.

Hi,
VirtualQuery’s property can’t showing memtable or cdstable in the list. If I assign it by coding, it will show the error.
dataset

check DACDSDataTable1.Dataset.Name.
if it is empty then assign it.
as I understand, you should use

virtualquery1.SQL.Text := 'select * from '+DACDSDataTable1.Dataset.Name;

Hi,
Thanks so much. It really works if I leave TDataSetLink empty and assign the statement like as your. :pray:

Hi,

try to use memtable instead of cdstable.
it also should work.

Hi,
I tried that works too.

1 Like