Ok, well you didn't show it. You showed: "FieldName = "Date1""
Honestly, I don't know how or why you would declare a control name in code anyway. You make the control on the form and call it something and then use code to do things with it. I have never heard of anyone setting a control...