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

Help with setting focus in subform 1

Status
Not open for further replies.

mytaurus2000

Technical User
Oct 4, 2006
138
US
I have a subform frmsubform, and main form, mainForm.

When the user enters address info in the subform, I would like the focus to move to the text field in subform txtPhone. I have tried it two ways, one with

Me![frmsubform].SetFocus
Me![frmsubform].Form![Home Phone].SetFocus

And I receive a runtime error 2465 saying can't find control I'm referencing.

Then I tried

Forms!frmsubform.[Home Phone].SetFocus

And it tells me it can't find frmsubform

How can I reference a field in my subform from my main form.
 
Larry,

Thank you for your help, that page is most definitely in my Favorits now.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top