Set Focus (1 Viewer)

syedadnan

Access Lover
Local time
Today, 19:01
Joined
Mar 27, 2013
Messages
315
I have a main form "Registration" have two sub forms one name is ADJ second name is SERVS
i have a command button on main form to open another form i am opening that form fine when i closing that outside form i want to set focus on second subform i.e. SERVS of the main form Registration, with the field name Services of subform
 

jdraw

Super Moderator
Staff member
Local time
Today, 11:01
Joined
Jan 23, 2006
Messages
15,379
Can you tell us more with detail, or show a sample of what you want to happen, or send a copy of the database (remove anything private/confidential first).
 

Ranman256

Well-known member
Local time
Today, 11:01
Joined
Apr 9, 2015
Messages
4,337
Set both form and field...

Me.subform!form!txtBox.setfocus
 

JHB

Have been here a while
Local time
Today, 17:01
Joined
Jun 17, 2012
Messages
7,732
I'm not sure you can do that in one step, normally first set the focus to the subform and the to the control in the subform.
 

Users who are viewing this thread

Top Bottom