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!

Setting focus to text box in subform

Status
Not open for further replies.

eon5

Technical User
Dec 31, 2007
47
ZA
Hi,
Im using the following code to lock the information of a subform on loading the main form.

Forms!PurchaseOrder!PoSubForm.Locked = True

And it’s working perfectly,

But when I try to set the focus to one of the text boxes in the Subform with the following code;

Forms!PurchaseOrder!PoSubForm.Form!Text20.setfocus

It’s not working, any ideas on what I’m missing.

Thanks
eon5
 
You may try this:
Forms!PurchaseOrder!PoSubForm.SetFocus
Forms!PurchaseOrder!PoSubForm.Form!Text20.SetFocus

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top