That may accomplish what I want, I'll give that a try.
By the way, I do only have one company table, my affiliates table is your companyrelationships table, I shouldn't have changed the name in my example.
Thank you very much your input has been helpful.
LAM