What could cause the assignment of a default value to a text box or combo box in Access XP VBA to give a #Name? error? For example, I have a very simple declaration of
Me.txtMyField.DefaultValue = "Whatever"
When I open the form, instead of the default I specified, I'm getting the #Name? error in the text box. I'm getting the same error in a combo box in another form. Both syntaxes are quite simple and they are correct.
What gives?
Greg Serrano
Michigan Dept. of Environmental Quality, Air Quality Division