in reply to Finding the lowest available UIDs
Thanks for the fast response. Both solutions work beautifully, sorry the for the previous confusion.