I know this is an old thread but thanks squidman. Your reply set me on the right track. Except I used a table of records.