I have been trying to do this with no good results. you think i would be able to figoure out how to check for EOF and see if that value is 0. but the over all quesiton is if that will actually work? thanks for all you help