This is driving me crazy!:banghead:
I have a simple form with a textbox whose controlsource I get from function:
<
Public ControlSourceName as String
Public Function getControlSourceName()
getControlSourceName = ControlSourceName
End Function
>
I set the controlsource of the textbox to the result of this function
<=getControlSourceName()> having given the name of the field in the current table to the ControlSourceName variable.
ControlSourceName = "1(1)ProblemMemo"
On load the textbox displays 1(1)ProblemMemo !!
If I put text into the field at table datasheet, the text is displayed but I cannot edit it!
If I put another textbox on the form and put it's controlsource directly to
1(1)ProblemMemo field then all is well.
Can anyone figure out what is happening? Please!
I have a simple form with a textbox whose controlsource I get from function:
<
Public ControlSourceName as String
Public Function getControlSourceName()
getControlSourceName = ControlSourceName
End Function
>
I set the controlsource of the textbox to the result of this function
<=getControlSourceName()> having given the name of the field in the current table to the ControlSourceName variable.
ControlSourceName = "1(1)ProblemMemo"
On load the textbox displays 1(1)ProblemMemo !!
If I put text into the field at table datasheet, the text is displayed but I cannot edit it!
If I put another textbox on the form and put it's controlsource directly to
1(1)ProblemMemo field then all is well.
Can anyone figure out what is happening? Please!