I have a text box bound to a control source that doesn't exist (as yet) which when the form is opened displays #Name. I want to hide all text boxes with #Name in them
i cannot understand the idea of binding a text box to something which does not exist yet. However, you may simply go to the properties of your textbox and set the visibility to No from there.
By the way, why don't you simply delete such textboxes and create them when you need them ?
The form is bound to a crosstab query which will eventually contain 60 fields. It currently contains 10 fields although I already know what the names of the additional 50 fields will be. I have bound the text boxes using these names so that as the crosstab increases it will populate the relevant text box. But if the control source doesn't exist (#Name) then hide the text box
I did think about doing it this way but I am trying to get away from having to mess around with the guts of the form if I can as this will be rolled out to users