Robert,
>HI DAvid: your code works, but I want to set up an relation using a compound
>index...that does not seem to work..
It is possible to do it with compound indexes. Just post more details and you'll get a solution. Please post the table structure of both tables, and the compound index expression of the table that is the target of the relation.