Mike,

I've had some time to play with the code. For some reason the EOF if statement is skipped even if the record exists. Any ideas?