I have in my code a field called "Number", which I changed to "JobNo" and it is working fine. The problem has been resolved. Although I am not sure of the reason, I am guessing that Number is a word used by the language and should not use it in my project. I cannot find any other explanation. Please correct me if I am wrong. Thank you very much for your help.