It might be easier to follow if you break them into separate recordsets if it isn't working properly now. The code is just too custom and complex to try to handle through a forum post. I'll have to work with the code directly to debug and get it working the way you want, which would require a premium ticket.