In the segments of code below, my intent is to set the name of a textbox control that will receive a string at a later time in processing. I can't find the source of the runtime 13 mismatch.
I've tried the code with and without the ".Value" and also setting a variant variable to the string with an attempt to assign that variable to the textbox.
I'm obviously missing something really basic here?
Code:Dim ctrlEMDT As Control <snip> Set ctrlEMDT = tbDTSample <snip> Set ctrlEMDT = tbDTAllSubscribers <snip> Set ctrlEMDT = tbDTAsSelected <snip> Me.Controls(ctrlEMDT).Value = Date & " (" & Format(Time, "hh:mmampm") & ")" Me.Controls(ctrlEMDT).Visible = True