CascadeKey.DeleteRule = ADOX.RuleEnum.adRICascade
For Each col In Adox.Tables(tbl).Columns 'then I successfully filtered the foreign key columns 'I get the correct field name and type Dim cName as string = col.Name 'but the rest of the code below failed! Dim DelRule As String = col.Properties("DeleteRule").Value Dim UpdateRule As String = col.Properties("UpdateRule").Value Dim RefCol As String = col.RelatedColumn Dim RefTable As String = col.Properties("DeleteRule").Value Dim RelationName As String = col.Properties("FK_Name").Value Next
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)