Solved

How to set focus to certain text box

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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

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…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

777 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