That's interesting Jonh, as I said, SQL is new to me. Does that code go in an Access module?