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 
cursor position in a field
Leonard Duval 
      
3 years ago
I want the cursor to go to the far left of the phone number field to start entering or editing the field. i am using an input mask and i want to force them to enter the whole phone number starting with the first number.
Leonard Duval OP  @Reply  
      
3 years ago
here is the input mask: !000\-000\-0000;;_    555-555-5555
Kevin Robertson  @Reply  
          
3 years ago
Add this to the On Got Focus and On Click events.

Phone.SelStart = 0
Phone.SelLength = 1    'only needed if the input mask starts with a special character such as a parenthesis


On Got Focus: if the user tabs to the field.
On Click: if the user clicks on the field.
Leonard Duval OP  @Reply  
      
3 years ago
Thank you. I was using Phone.SelStart = 1 because I started out with parenthasis and changed the input mask. It works.

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 2:35:20 AM. PLT: 0s