Thanks Douglas, That worked like a charm!.... Question: I update the display text about 10 or so times. Instead of repeating that code over and over, do you think it will work okay if I use a gosub for that procedure with variables?
P.S. Since I open this form on top of another I had to change the "ME." to FORMS!.... formname, textbox - But it worked fine once I did that!
"Douglas J. Steele" wrote:
[Quoted Text] > With Me!MyTextbox > .SetFocus > .SelText = .SelLength > End With > > -- > Doug Steele, Microsoft Access MVP > http://I.Am/DougSteele> (no e-mails, please!) > > > "dbarmer" <dbarmer[ at ]discussions.microsoft.com> wrote in message > news:DD29FA36-5F9B-4043-9E6E-13CE916C09CE[ at ]microsoft.com... > >I have an unbound text box that I use on a form that updates text to it as > > code progresses in VBA. It updates the user what the program is doing. > > It > > works well, however, I can't seem to get the "highlight" off the text. Is > > there a way to get that insertion point at the end of the text - in the > > unbound text box, or at least not highlight at all... > > >
|