12 hours ago: Power and Internet are out in my office due to Hurricane Ian. Click for details.
 
Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   Seminars   Templates   TechHelp   Fast Tips   Forums   Help   Contact   Join   Order   Logon  
 
Home > Forums > Access
Access Forum


Back to Access Forum
 

centering field and field name Upload Images   Link  
Harold Laski 
6 days ago
I have a field with the name of the field in font 8 and the field itself as font 12.  Since I cannot center text in a field vertically and only horizontally, I am having a hard time making reports and even forms look correct. Is there any solution in Access to do this.
Scott Axton
6 days ago
Working with controls in forms is covered in Access Beginner 2  You might want to go back and review those lessons.

Ont hing I'v found helpful is to make them bigger than you need after changing a font size then click once to select the control.  With the control selected double click one of the sizing handles to size the control to fit.  It really is just a matter of working with lots of forms and reports before it becomes second nature.   Having a good looking form or report and fitting everything in really is king of an art and it just takes doing it. Lots.

Play around in design mode with the mouse right click options as well as the options on the ribbon under arrange and format.

I wish there was a magic bullet or wizard wand I could give you but some of it is just experience in working with the objects.
Harold Laski
6 days ago
Being able to center text within a field, not only orizontally but vertically would make this all way easier as can be done in excel. After having used Apha Five database and Excel spreadsheet I was surprised that access, after all of these years did not make this a basic thing in access. Hopefully they listen to us the users of access.
Scott Axton
6 days ago
Agreed.  But I don't see that happening in the near future.  Why they didn't institute that is above my pay grade.

I use A5 years ago as well - you get used to doing things a certain way and then have to change it's tough I know.
But what are you going to do?
Kevin Yip
6 days ago
Access cannot align text vertically inside text boxes, which is a big oversight.  If you really must have vertical alignment, make your text box borderless and put it inside a rectangle.  In the Format event of the report's Detail section, adjust the .Top and .Height properties on the text box based on the length of the text in it.  See VBA code and picture below.

Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
    Dim b As Boolean
    
    ' Check if text length is greater than, say, 30 characters.
    b = (Len(Me!field1 & "") > 30)
    
    ' Set values of .Top and .Height properties of text box based on whether text is 30 chars long or not.
    ' .Top and .Height are in "twips."  One inch equals 1440 twips.
    Me!field1.Top = IIf(b, 0.08, 0.16) * 1440
    Me!field1.Height = IIf(b, 0.4, 0.2) * 1440
End Sub
Kevin Yip
6 days ago

Add a ReplyUpload an Image


Back to Access Forum Comments
 

Start a NEW Conversation
 
Only students may post right now. Click here for more information on how you can set up an account. If you are a student, please LOG ON first.
 
Subscribe
 

Check out these other pages that may be of interest to you:

9/27/2022Report Border
9/26/2022First Day of Month
9/23/2022Before Update
9/22/2022Synchronize Subforms
9/21/2022InputBox
9/20/2022Link Master Fields
9/19/2022DateSerial
9/18/2022Sequential Annual Coding
9/16/2022Scope
9/15/2022Resize Forms
 
 

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
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
Email Richard
Mailing Address
Phone Number
Fax Number
Course Survey
Blog RSS Feed    Twitter

YouTube Channel    LinkedIn