Hi Ray
Thanks for the speedy reply.
There are a number of different searches on the page, including where PgType = 3 or 4 etc and in these instances the Under_PgID may or may not be null. Equally, there may be pages of PageType = 5 that have an Under_PgID not null, so I don't think I can write it in the recordset
Cheers
Chris