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 
Set Focus on First Field
Mai-Lan Aikens 
    
2 years ago
How do I get Access to get the cursor to blink on the first line of my forms? What it seems to be doing is remaining at the last line I completed when I start a new record instead of starting at the very first line in the new record.
Sami Shamma  @Reply  
             
2 years ago
FirstFieldName.setfocus
Ludwig Willems  @Reply  
      
2 years ago
Sami
and at which event we place it
Sami Shamma  @Reply  
             
2 years ago
Ludwig,

Most likely place will be "on open" event. But that depends on what you want to do.
Richard Rost  @Reply  
          
2 years ago
It could just be a matter of setting your Tab Order correctly.

But if you want to force the Focus to jump to the first field every time you to go a new record (or change records) put that code Sami gave you in the OnCurrent event.
Kevin Yip  @Reply  
     
2 years ago
In a typical form as pictured below, if the tab order is Field1 to 2 to 3, navigation should work like this:

- If the cursor is in Field1 or Field 2, pressing Tab will put the cursor in the next field of the same record.
- If the cursor is in Field3 (the last field), pressing Tab will put the cursor in Field1 of the next record.
- If the cursor is in Field3 (the last field), pressing Page Down will put the cursor in Field3 of the next record.

To change the behavior of the above, you need to use coding with VBA or macros.
Kevin Yip  @Reply  
     
2 years ago

Richard Rost  @Reply  
          
2 years ago
Yep. If you want to always set the focus on, let's say FirstName, then in the OnCurrent event of the form, all you need is:

FirstName.SetFocus

Then it doesn't matter how you get there (TAB, PgDn, click on the navigation buttons) it will always put the focus on FirstName whenever you move to a different record, or when the form opens.

Like many things, I can't think of a NON-VBA way to do this, but it's only one line of code.
Mai-Lan Aikens OP  @Reply  
    
2 years ago
Thank you so much for your reply. I believe I am using a copy of Microsoft Office 2021. This is what I purchased. In my form in design view, over to the right, I see Property sheet in between "add existing fields" and "tab order."

Under Property Sheet, when Event is clicked, nothing appears except Grey. I cannot find On Current even after looking under Format and All.
Sami Shamma  @Reply  
             
2 years ago
Send an Image of what you are describing.
Kevin Yip  @Reply  
     
2 years ago
Make sure you select "Form" at the top of the property sheet.  See picture below.
Kevin Yip  @Reply  
     
2 years ago

Richard Rost  @Reply  
          
2 years ago
I strongly recommend you watch:

Intro to VBA
On Current

And practice those first.
Mai-Lan Aikens OP  @Reply  
    
2 years ago
Thanks to you all. All of you helped. I got it to work. Thanks again to Richard Rost. I will be studying VBA in the near future. I have the learning programs and cd.

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 3:51:00 PM. PLT: 0s