Master/detail error

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Luigi
Posts: 1
Joined: Mon 15 May 2006 17:00

Master/detail error

Post by Luigi » Mon 15 May 2006 17:08

Hello,

I made a master detail form but when I try to insert a new record into the detail area I get the folowing error:

Cannot acces field 'website_id' as type variant.

I have made the same construction with ZEOS and it worked well.

How do I solve this problem.

Thanks in advance!

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

Post by Antaeus » Tue 16 May 2006 09:12

Please check if the fields you use for Master-Detail relationship are either of the following types:
INT UNSIGNED
BIGINT
BIGINT UNSIGNED
If this is true, try converting them to INT data type. If problem persists or you don't use such data types then send us (EvgeniyD*crlab*com) a complete small sample to demonstrate the problem, 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

Guest

Post by Guest » Wed 17 May 2006 01:23

Problem solved,

thanks, now I can sleep again at night! :D

Post Reply