Board index » delphi » Newbie: Create primary key with ADOX
Andre Freese
![]() Delphi Developer |
Mon, 13 Jan 2003 03:00:00 GMT
Newbie: Create primary key with ADOX
Moin!
I need help please creating a Access2000 table with ADOX. By now, I create a catalog, a table and a column. I want to set the column-Index to "yes(without duplicates)" and the column What am I doing wrong? All advice is welcome. P.S: Pardon my poor english Code: try ADOXTable.Name := 'MITARBEITER'; ADOXColumn := CoColumn.Create; ADOXTable.Columns.Append(ADOXColumn, adInteger, ADOXCatalog.Tables.Append(ADOXTable); ADOXIndex.Name := 'IDX1'; this causes EOLEException: ADOXIndex.Columns.Append(ADOXColumn, this causes EOLEException: finally |