"Invalid Variant operation" when moving to a diferent record

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
jostos
Posts: 9
Joined: Tue 11 Apr 2006 04:29
Location: Mexico

"Invalid Variant operation" when moving to a diferent record

Post by jostos » 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

Antaeus
Posts: 2098
Joined: Tue 14 Feb 2006 10:14

Post by Antaeus » Tue 11 Apr 2006 06:10

We couldn't reproduce the problem.
Please send us (mydac*crlab*com) a complete small sample to demonstrate it, including script to create and fill table.

Also supply us following information
- Exact version of Delphi, C++ Builder or Kylix
- Exact version of MyDAC. You can see it in About sheet of TMyConnection Editor
- Exact version of MySQL server and MySQL client. You can see it in Info sheet of TMyConnection Editor

GEswin
Posts: 186
Joined: Wed 03 Nov 2004 16:57
Location: Spain
Contact:

Post by GEswin » Tue 11 Apr 2006 21:00

Have a look if you've calculated fields, or some OnGetText of the fields that you perform some operation.. Also datachange events, etc.. Mostly occurs on some of those events.

Post Reply