Re: ADO and subquery



"treok" <h.k.j.keesmaat@xxxxxxxxx> wrote in message
news:45b0d0c9@xxxxxxxxxxxxxxxxxxxxxxxxx
If I use subquerys within a query in a ADOdataset I get very often a
EAccessviolation in module 'ntdll.dll' or module 'msvcrt.dll'.

When I check these query in SQL Query Analyzer it runs without a problem.

Is this a ADO problem?

Yes. On my machine, sometimes I get an error, other times Delphi (Delphi 6)
just disappears (no error or anything). Funny thing is/was that some of our
other developers here have no problems with sub-queries in an ADO dataset.

The only way I found around the problem is to put the code in a View or
build the SQL dynamically.

Good luck,
krf


.