Hi there, I saw your code and successfully replicated the ApolloDB "erroneous behavior", take a look at:
[login to view URL]
[login to view URL]
[login to view URL]
I have for many years working with DBF files (Harbour/delphi/Foxpro/C++) and SIXCDX (Aka ApolloDB SixDriver).
I think I can help you solve ApolloDB related problem's with Set Relation and Set Filter. For this task I can work with the same Visual Studio version that u have. Just downloaded and installed ApolloDB 9.7 Trial version with Visual Studio 2012 and 2017.
My preference is C#, but we can try with VB as your project sample code.
If interested, contact me.
Yours Truly,
Antonio Lima
BRAZIL