Board index » delphi » Creating primary key for Access 97 tables
Thomas Gülden
![]() Delphi Developer |
Sat, 22 Dec 2001 03:00:00 GMT
Creating primary key for Access 97 tables
Hi,
To create primary indexes for a set of tables in an Access 97 database I 1.) Using the table.AddIndex('PrimaryKey','<keyfield(s)>',[ixPrimary]); 2.) Replacing the AddIndex syntax with DAO methods after importing the var begin Example 2 (just shows the principle, there may be syntactical errors here, Questions: Are there any limitations of adding a Primary Key to Access 97 What is the safest code in VCL or others to add a Thanks in advance for any answers. Thomas Glden thomasgul...@csi.com |