I'm trying to pass a recordset into a Subroutine so I can check for EOF and if it isn't move to the next record. But when I do this it gives me a type mismatch. Any ideas how to get around this? When I use the code directly into the page (not in a sub) then it works fine. But I'd rather call a sub than having to use the all code every time.