Hi Cyril,
Glad it worked for you.
>Sergey
>
>Thanks for explaining how to do this.
>
>BTW the WHERE ac.CID + pr.CID+ ct.CID NOT IN ( ;
> SELECT bkey FROM crsBkeys )
>caused a few problems with my tables, but I just used an intermediate cursor and it works very well.
>
>Thanks
>Cyril
>
>
--sb--