Hi Steve,
Yep spot on with your logic... So obvious now! ?? How embarrassing!
I thought I had got round the issue using database ID to exclude the system databases e.g ID > 6 (where 1-6 are sys db's and report server db's)
... Until I needed to add another which wasn't a sys db and the id was 14. But your logic works perfectly so many thanks for your guidance.
Asam