Good day!
I have a form in Access that has a multiple line textbox (I called it cAbnormalities) . This text box is populated by the user ONLY through selection of options from combo boxes. I want the selected options to each be in a seperate line, and I don't want the user to be able to edit the textbox without using the combo boxes.
Here is my code when a selection is made from the combo box:
If I remove the two lines that lock and unlock the control, then my text is entered in a new line, otherwise the new line is undone! Can someone please help!
Thanks in advance!
I have a form in Access that has a multiple line textbox (I called it cAbnormalities) . This text box is populated by the user ONLY through selection of options from combo boxes. I want the selected options to each be in a seperate line, and I don't want the user to be able to edit the textbox without using the combo boxes.
Here is my code when a selection is made from the combo box:
Code:
Me.cAbnormalities.Locked = False
Me.cAbnormalities.SetFocus
Me.cAbnormalities = Me.cAbnormalities & cBoxText
Me.cAbnormalities.SelStart = Nz(Len(Me.cAbnormalities), 1)
SendKeys "{enter}"
SendKeys "{backspace}"
Me.cAbnormalities.Locked = True
Thanks in advance!
Comment