Wow ... thats just what I was looking for, many thanks ... a great piece of code. While I have you here would you car to give me a snippet on ENTITY SCANNING?? How do I get one ENTITY to know its close to another ENTITY.