Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Help   Contact   Merch   Join   Order   Logon   Forums   
 
Home > Forums > Access Forum > Long Text Question by David Clement
Back to Access Forum    Comments List
Upload Images | @Reply | Bookmark | Link | Email | Next Unseen |
Long Text Question
David Clement 
      
3 hours ago
Good afternoon Richard,
This may be a silly question and you've probably already talked about it.
Is there a way to edit a Long Text Field after text has already been entered without messing it up. When I try to edit, Access put a black cursor square where I want to edit and deletes the test.
How can I fix it?
Thank you.
Monica Jones  @Reply  
       
2 hours ago
It sounds like you want to tab into a text field and have the cursor appear at the end of the line. I Googled and this is what I got:

Private Sub YourTextBoxName_Enter()
    ' Moves the cursor to the end of the existing text
    With Me.YourTextBoxName
        .SelStart = .SelLength
    End With
End Sub

I tested it on one of my existing forms, but I put it on the "Got Focus" event and it works. I think I'll keep it too, thanks for the great idea!
Monica Jones  @Reply  
       
2 hours ago
Nope, copied wrong thing here's what I got (what I get for closing a window and re-searching something):

Private Sub YourTextBoxName_GotFocus()
    'Check if the text box has data to avoid errors
    If Not IsNull(Me.YourTextBoxName) Then
        'Move the cursor position to the length of the string
        Me.YourTextBoxName.SelStart = Len(Me.YourTextBoxName.Value)
    End If
End Sub
Donald Blackwell  @Reply  
       
2 hours ago
Also, if you're just editing in the form manually, if you tab into a cell and everything is highlighted, you can press "F2" to drop to edit mode and it will put the cursor at the end of the text.
Monica Jones  @Reply  
       
69 minutes ago
Donald That's good to know, thanks!
Kevin Yip  @Reply  
      
69 minutes ago
David  Make sure the Insert key on your keyboard is turned on.  That is most likely the cause based on your description.  With the Insert key off, you type over whatever the cursor is highlighting.  With the Insert key on, the cursor is a thin vertical line that doesn't type over anything.  Keyboards don't an LED indicating the on/off state of the Insert key like they do with the Num Lock and Caps Lock keys, so be certain it's on.  Thin vertical cursor: Insert on.  Blocky black cursor: off.
David Clement OP  @Reply  
      
43 minutes ago
Thank you Kevin, that worked!
Add a Reply Upload an Image
Next Unseen

 
 
What's This?

 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 9/28/2026 6:17:30 PM. PLT: 1s