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 Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
String Function
Tim Schmidt 
    
5 years ago
Could you assist me in what I am doing wrong in the following.  I am just trying to add a *  at the end of a text field named LastName so that the total lrngth will be 50.
= [LastName] &   & String(50-Len([LastName],*))
Richard Rost  @Reply  
          
5 years ago
In the AfterUpdate event for that field, try this:

LastName = LastName & String(50-(Len(FirstName)),"*")

That's if you want to CHANGE the field. You could always just use a query to display the data that way.
Richard Rost  @Reply  
          
5 years ago
I'd throw an extra space in there too, and use a Monospaced font (like Courier) if you want all the letters to be the same width.
Tim Schmidt OP  @Reply  
    
5 years ago
When I ose the followinh in a query. all I get is a "0" in the field.
PARSEC:LastName = LastName & String(50-(Len(LastName)),"*")

Tim Schmidt OP  @Reply  
    
5 years ago
I went back to my check template and copied that down and was able to find my mistake.
Yhanks for the quick reply.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access 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/6/2026 10:00:36 AM. PLT: 1s