Each user will execute the code wen they log on so there is a possibility that more than one user is attempting to write to the file at the same time. I am happy to implement Howard's suggestion of giving the log file the workstation name and creating a log for each workstation though does anyone know of any easy way to consolidate this information ?
Failing that yes I would like a WHILE loop with a timeout but again where do I put that code ?? I'm a bit confused on where to put it based on the error code for the file being open.