UniTable Issue Posting
Posted: Tue 15 Sep 2009 18:21
I have some code to directly use a table like this.
mytable.append;
mytable.fieldbyname('field1').aswidestring:= 'myvalue1';
mytable.fieldbyname('field2').aswidestring:= 'myvalue2';
mytable.fieldbyname('field3').aswidestring:= 'myvalue3';
mytable.post;
Using the UniTable this fails with the error "TBLID must have a value".
This happens when using the AccessProvider.
TBLID is the auto-number column for this table in the access version of my database. This code still works with the UniDAC SQLServerProvider with the MSSQL version of the database.
What am I missing here?
Thanks.
mytable.append;
mytable.fieldbyname('field1').aswidestring:= 'myvalue1';
mytable.fieldbyname('field2').aswidestring:= 'myvalue2';
mytable.fieldbyname('field3').aswidestring:= 'myvalue3';
mytable.post;
Using the UniTable this fails with the error "TBLID must have a value".
This happens when using the AccessProvider.
TBLID is the auto-number column for this table in the access version of my database. This code still works with the UniDAC SQLServerProvider with the MSSQL version of the database.
What am I missing here?
Thanks.