the microsoft ADO 2.7 dll can not obtain the foreing keys of an AS400 table. I think that it's possible using the Client Access Express dll; adding it in a references of a visual basic project. So in the cwbDatabaseCatalog class there is the cwbdbRetrieveForeingKeysInfo method. could tell me someone how is the correct implementation to obtain the foreing keys of a table using this method?