Actually, I just found the answer myself. At design time, I had entered '="xxx"' into the Data=>Control Source field of the Properties sheet for the textbox. I just deleted the '="xxx"' so that there is no value in the Control Source field now. When I did that, it worked fine.