Hi all,
Following some help from www.aspfaq.com, I have used this sql command
to find the constraint name of my foreign key:
SELECT
FK_Table = szReferencedObject,
FK_Column = szReferencedColumn,
PK_Table = szObject,
PK_Column = szColumn,
Constraint_Name = szRelationship
FROM
MSysRelationships
Unfortunately, constraint_name = szrelationship does not work; in this
sense: it does not return the displayed column value of my foreign key.
For example, if I have AuthorID (=5) as foreign key and Authors as
Foreign table, I expect that "szRelationship" returned AuthorName
(="Hemingway") but it return something like "reference1" and I don't
know what to do with it.
If there any way of getting the displayed column value of a foreign key
also using ADOX.catalog object or Openschema?
My database is Ms Access of course.
Many thanks,
Irena