Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cursor starts in a field

Status
Not open for further replies.

darkhat01

IS-IT--Management
Apr 13, 2006
144
US
How do I make the cursor start in the field I would like it to?

Example: Currently it starts in the last name, but I would like it to start in the first name.

Thanks,

Darkhat01
 
Have a look at the SetFocus method (in code) or at the TabIndex property (in design view).

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Here is what I think is happening, I have 5 sub-form in a form the focus is staying on the last form, if I try to move the mouse wheel it turns to the next record in the subform called "Walkthrough" It should change the main form. The main form is called "DataPlan".

If I try to change the SetFocus I get an error, if I do a DoCmd.GoToControl "ID" on the main form I get and error.

Any ideas?

Thanks
 
If I try to change the SetFocus I get an error
Where and how did you try that ?
Which error message ?
Please, read carefully this: FAQ181-2886
 
I tried it at the end of the sub form called "Form_Current()" I type Me.ID.SetFocus

ID being the field I want the cursor to go to.

 
. . . and ID is on which subform?

Calvin.gif
See Ya! . . . . . .
 
ID is on the main form called "DataPlan".
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top