I am dynamically changing a field name in a table. This table is bound to a subform. Consequently I have to change the name and controlsource of the textbox in the subform accordingly. I have been successful in changing the controlsource but am having trouble with the name.
The question I have is this. Can I open the form in design view somehow and have it hidden so that I can change the name of the textbox. Also since the name of the textbox changes how can I store it and point to it so that I can change the name of it again.
I tried creating a global variable (glOldName) to store the name of the textbox. However I do not know how to reference it back again. The following code did not work.
Form_frmSchedulingOptions.subfrmPeopleOnCALOrOffForSpecificDay.Form.glOldName = strPeopleOnCALOrOffForSpecificDayDayDate
(new Name of the textbox)
Thanks.
The question I have is this. Can I open the form in design view somehow and have it hidden so that I can change the name of the textbox. Also since the name of the textbox changes how can I store it and point to it so that I can change the name of it again.
I tried creating a global variable (glOldName) to store the name of the textbox. However I do not know how to reference it back again. The following code did not work.
Form_frmSchedulingOptions.subfrmPeopleOnCALOrOffForSpecificDay.Form.glOldName = strPeopleOnCALOrOffForSpecificDayDayDate
(new Name of the textbox)
Thanks.