Thank Trebor and milz for the help! Both sets of code worked like a charm.