Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   Index   Templates   Seminars   TechHelp   Forums   Help   Contact   Join   Order   Logon  
 
Home > Forums > Developers
Back to Access Developer Forum    Comments List
Make Labels Height Match Text Upload Images   Link   Email  
Victor Lugo 
Hello,
I am creating a report for my boss and in it there's a subreport for certain records. We want this report to look as professional as possible for upper management so I'm trying to get the associated label of Long TextBox to grow in height when there are multiple lines in the associated textbox.

I've tried to using the following VBA as an event procedure, but Access doesn't like the "Me" code for this.

Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)

    Me.lblStatusComments.Height = Me.txtStatusComments.Height
    Me.lblADComments.Height = Me.txtADComments.Height

End Sub


Would appreciate some help in solving my dilemma, thank you in advance.
Victor Lugo 

Victor Lugo 
Duh... I solved this myself.
Instead of a label, I just used a text box in its place.
Victor Lugo 

Scott Axton 
Here is another way.  In your first picture you could even do all of them at once.
First select all the fields / boxes you want to change.  Then RIGHT Click and...
Scott Axton 

Richard Rost 
Scott, I think he wants them to grow and shrink dynamically based on the content. He's got the right idea. Your method is correct, but that sets them static at design time.
Scott Axton 
Richard  Maybe I misunderstood.  Reading back through I think you are correct.

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

 
 
 

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 2024 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 3/28/2024 5:51:54 AM. PLT: 0s