You could loop through the Relations collection, and print out lots of
details about the relationships (including the hidden relationships), such
as the names of the tables and fields involved in the relationships.
The Attributes of the relation should give you the details you see in the
Create Relations dialog.
Here's the basic idea to get you started:
Function ShowRel()
Dim db As DAO.Database
Dim rel As DAO.Relation
Dim fld As DAO.Field
Set db = CurrentDb()
For Each rel In db.Relations
Debug.Print rel.Name, rel.Table, rel.ForeignTable
For Each fld In rel.Fields
Debug.Print , fld.Name, fld.ForeignName
Next
Next
Set fld = Nothing
Set rel = Nothing
Set db = Nothing
End Function
BTW, if you are really interested in the attributes, there's one that does
not show up under DAO at all. JET 4 includes for Cascade-to-Null relations,
e.g. if you delete a Category from the lookup table, the Products in the
category are not deleted but Product.CategoryID cascades to Null. This
particular gem is available only through ADOX, i.e. not even through the
interface (which uses DAO).