Many thanks to the both of you, I am taking a look at your script now tekprof, it appears straight forward and I should be able to set it up ok.I am just waiting to hear from the HR department on the exact field names and also from the IT department about the location of the database, then I should be able to test it all.Many thanks again and will post with progress reports.