ArcMap 10.2 Visual Studio 2010 vb.net.
I can easily write a button addin that opens a form and allows the users to select a date range and run a query against a geodatabase standalone table that selects records within that date range. This table is related to a feature attribute table of a geodatabase layer.
I for the life of me can't see anywhere how to "push" the relate to the feature attribute table programatically and in turn select all the related records in the layer?
Any suggestions?
John
The key interfaces are IMemoryRelationshipClassFactory, IRelationshipClass and a method GetObjectsRelatedToObjectSet using these you create a ISet object of related rows and use that to populate a SelectionSet. If you search the forums there are enough examples snippets of code to get you going.