Error "Cannot acces field "FIELDNAME" as type variant"

Discussion of open issues, suggestions and bugs regarding SDAC (SQL Server Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Posts: 105
Joined: Sat 10 Jul 2010 18:46

Error "Cannot acces field "FIELDNAME" as type variant"

Post by radub » Sun 13 Nov 2011 10:17

SDAC v. for Delphi 7 on Windows XP pro.
TMSTable connected through a provider to a mssql server 2005;
after inserting a record on a table containing a field with datatype BIGINT, (the provider ?) threw that exception.
The BIGINT field is not primary key, nor foreign key, not even have a constraint on it.

Debugging the application, appears that exception occurs after the execution of AfterUpdateRecord event, without a definite source line.


Post by AndreyZ » Mon 14 Nov 2011 11:02


This error is raised by the TLargeintField class. Please take a look at the following topic:

Post Reply