Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

How to set focus to certain text box

Posted on 2008-10-19
4
204 Views
Last Modified: 2013-11-29
I would like to open a form and has a particular text box's focus set in that box waiting for input from the user. (IE: txtJob)
0
Comment
Question by:kierwright
  • 3
4 Comments
 
LVL 74

Accepted Solution

by:
Jeffrey Coachman earned 125 total points
ID: 22754826
kierwright,

Set the TabIndex property of that control to Zero (0)

Or, us code like this on the form's Open Event

Sub YourForm_Open()
    Me.YourTextBox.SetFocus
End sub

JeffCoachman
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 22754842
This is a very basic question.

Do you have a good reference book on MS Access yet?

My Recommendations:

Access 2003 Bible:
http://www.amazon.com/Access-2003-Bible-Cary-Prague/dp/0764539868/ref=pd_bbs_sr_2?ie=UTF8&s=books&qid=1221792805&sr=1-2
Access 2003 , step by step
http://www.amazon.com/Microsoft%C2%AE-Office-Access-2003-Microsoft/dp/0735615179/ref=pd_bbs_sr_2?ie=UTF8&s=books&qid=1221793077&sr=1-2

;-)

JeffCoachman

0
 

Author Closing Comment

by:kierwright
ID: 31507698
Thanks work perfect! I will check into those books also thank you.
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 22755031
;-)
0

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Disable Outlook Security Warning Window Access 2016 5 48
Changing a line of VBA using VBA 3 33
ADODB problem 20 37
Access Web App or PowerApp 22 29
Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question