LucyTaylor
asked on
Editing a TextBox
Hello, I have a textbox that displays certain data when certain checkboxes are checked, what i need to know is how do i edit the data in the textbox. For example if the textbox reads 'Thereare two numbers" how would i be able to edit the display to add a space between there and are. Thanks
or
Dim str
str = Replace$("Thereare two numbers","Thereare","There are")
Debug.Print str
?
Dim str
str = Replace$("Thereare two numbers","Thereare","There
Debug.Print str
?
ASKER
I am sorry, i might have confused you on the question, i just need to be able to edit the data in the text box, when the data is displayed on the userform i need to be able to click on the textbox to make changes.
How do you display your data? Link/ Bound to a Data Control? Is it a Query from many tables or just from single table?
ASKER
Linked
So, back to your problem.
Are you mean you can't change the value (Text) in the TextBox Bound to a DataSource?
Are you mean you can't change the value (Text) in the TextBox Bound to a DataSource?
ASKER
Yea
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
The Locked property was set to to true, thanks
You're welcome :)
Private Sub Command1_Click()
Dim str
str = "Thereare two numbers"
Mid(str, 6) = " " & Mid(str, 6)
Debug.Print str
End Sub
replace str with Textbox name