"Invalid Variant operation" when moving to a diferent record
Posted: Tue 11 Apr 2006 04:32
I am having problems with a TMyQuery with the following SQL:
SELECT p.CaptCtro, m.*
FROM medcambpnd p LEFT JOIN medicos m ON p.Medico=m.Medico
GROUP BY p.CaptCtro, m.Medico
ORDER BY p.CaptCtro, m.Medico
The table is displayed (initially) in a CRDBGrid without problem. When I try to move the cursor to another record, I get an "Invalid Variant operation". This happens regardles of the tables being readonly or not, and regardles of the grid (CRDbGrid or DBGrid).
If I display the table within the "Data editor" at design time, It displays and moves without a problem.
Any ideas on what is wrong??
I am converting a working application that was previously using zeos data components. This was working properly before using MyDac.
Regards
Jay
SELECT p.CaptCtro, m.*
FROM medcambpnd p LEFT JOIN medicos m ON p.Medico=m.Medico
GROUP BY p.CaptCtro, m.Medico
ORDER BY p.CaptCtro, m.Medico
The table is displayed (initially) in a CRDBGrid without problem. When I try to move the cursor to another record, I get an "Invalid Variant operation". This happens regardles of the tables being readonly or not, and regardles of the grid (CRDbGrid or DBGrid).
If I display the table within the "Data editor" at design time, It displays and moves without a problem.
Any ideas on what is wrong??
I am converting a working application that was previously using zeos data components. This was working properly before using MyDac.
Regards
Jay