Thanks for confirming that the code looks ok. What’s baffling me is that I have had this site up and running for over 5 years without any problem. I thought it was beginning to look a bit dated and decided to change the look. This I have been doing with a change of template. I have had to make any changes to the database and or the asp coding to do this. So why do I now get this problem? These fields in the database are and have always been formatted as currency and if I look at the relevant datasets the figures still appear to be as they should be..