Thanks All. You are correct in that this is very old code and that there are better ways to declare variables, but at present the owner of the app is happy with it and as such doesn't want to alter/modify/improve it. I am just trying to get an understanding of the code so in the event of problems I can sort them out.
Regards,
Bryan