?
Solved

How to set focus to certain text box

Posted on 2008-10-19
4
Medium Priority
?
214 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
[X]
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
  • 3
4 Comments
 
LVL 74

Accepted Solution

by:
Jeffrey Coachman earned 500 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

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

Question has a verified solution.

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

The Windows Phone Theme Colours is a tight, powerful, and well balanced palette. This tiny Access application makes it a snap to select and pick a value. And it doubles as an intro to implementing WithEvents, one of Access' hidden gems.
This article shows how to get a list of available printers for display in a drop-down list, and then to use the selected printer to print an Access report or a Word document filled with Access data, using different syntax as needed for working with …
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses

765 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