Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Textbox 1

Status
Not open for further replies.

Jengo

Programmer
Apr 17, 2000
100
US
Is there a way to enter data at the end of the text in a textbox, rather than writing over it.  And can you make the previous text non changeable?
 
To add something to the end<br>use this<br>Me!Text1 = Me!Text1 & &quot;Add Some stuff here&quot;<br><br>So they can't change it.<br>If you make the Textboxes &quot;Locked&quot; property &quot;Yes&quot; then they can't change any thing in it, Even if you add something to it in the code right above.<br>The code does add something to it when it's locked I just tested it.<br><br>OK<br> <p>DougP<br><a href=mailto: dposton@universal1.com> dposton@universal1.com</a><br><a href= > </a><br> Ask me how Bar-codes can help you be more productive.
 
to position the cursor at the end of existing text for manual entery this seems to work<br><br>place in on enter<br><br>Dim txtleng As Integer<br>txtleng = Len(Me.yourtextbox)<br>SelStart = (txtleng + 1)<br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top