Thank you arnelgp, and everyone! The reason it didn't work was because I simplified when I described the numbering of the stati. Actually, the numbers in my database are not 1-6. They are 1, 3, 4, 6, 8, 9. It's a long story why they are not sequential, but I left it that way on purpose for...