Thanks Jamie: I was hoping that there was a quicker way of doing it. I've partly resolved the problem by creating files systematically so that ID's are in sequence...saves a bit of time having to launch new pop-ups to get the ID. Thanks also for the explanation of how the database works.
Dave