Solved

How to set focus to certain text box

Posted on 2008-10-19
4
198 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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Familiarize people with the process of utilizing SQL Server functions 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 Ac…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…

744 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now