Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access Developer Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Rich Text Box
Gordon Merkosky 
     
2 months ago
How do I limit the number of lines in a rich text box?
Sami Shamma  @Reply  
             
2 months ago
Alex Hedley  @Reply  
           
2 months ago
Alex Hedley  @Reply  
           
2 months ago
Richard Rost  @Reply  
          
2 months ago
You really can't reliably limit the number of lines in a rich text box when the text wraps automatically. Line wrapping depends on several factors like the font, font size, control width, and formatting, so the actual number of displayed lines can change.

The only time you can accurately count lines is if the user inserts manual line breaks (pressing Enter). In that case you could count those breaks, but with normal word wrapping Access decides where the lines fall. Because of that, the practical approach is usually to limit the number of characters instead, as Alex suggested, rather than trying to control the number of visible lines.
Gordon Merkosky OP  @Reply  
     
2 months ago
Thank you all for your responses! I decided to move the rich text box on my report to where it can grow and shrink.
Have a great day all!
Richard Rost  @Reply  
          
2 months ago
Yeah if all you're looking for is good clean display then that's best. You could even embed the report inside of a form if you want.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Developer Forum.
 

Next Unseen

 
New Feature: Comment Live View
 
 

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: 5/8/2026 10:43:09 PM. PLT: 0s