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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Set Focus On a Sub-Form

Status
Not open for further replies.

CLOS

MIS
Jan 30, 2002
23
US
Help Somebody,

I have a sub-form within a main form that contains a textbox that I want to set focus on. How do I do this.
Please help me with this one, thanks.
 
Forms![MainFormName]![SubFormName].Form![TextBoxName].SetFocus

It is important to use the name of the text box and not the name of the field linked to the text box, although these MAY be the same. Jonathan
________________________________________
It is not fair to ask of others what you are unwilling to do yourself.
-Eleanor Roosevelt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top