I am trying to set the controlsource property of one of my text boxes in code when a button is clicked.
I want to set it to the returned value of a rather complex DCount function. However to start off I'm just trying to set it to a text string and I can't even manage that.
I am using the line:
Me.txtFilteredWaitingListTotal.ControlSource = "Test"
This line has been written into the form_load event but when the form opens up the textbox is displaying #Name?
Any help appreciated.
I want to set it to the returned value of a rather complex DCount function. However to start off I'm just trying to set it to a text string and I can't even manage that.
I am using the line:
Me.txtFilteredWaitingListTotal.ControlSource = "Test"
This line has been written into the form_load event but when the form opens up the textbox is displaying #Name?
Any help appreciated.