That looks great. What do I have to do to add the LOOP and IF statements, or does this already do that. The filter looks universal but I don't understand the scalarref yet. Thanks again for the help, it is appreciatted more then you would ever think...