set focus to subform in subform from main form button

  • Thread starter Thread starter msmuzila
  • Start date Start date
M

msmuzila

Need to set focus to subform in subform from main form button

Main form: frmFind
Subfrom: frmAdd_Disk
Sub-subform: frmDisk

control to set focus on sub-subform: Disk # (text box)

many thanks
 
suggest you try doing it in steps, setting focus first on the subform, then
on the sub-subform, then on the control within the sub-sub-form. syntax
could be either of

Me!SubformControlName
Me!SubformControlName!SubSubformControlName
Me!SubformControlName!SubSubformControlName!TextboxName

or

Me!SubformControlName
Me!SubformControlName.Form!SubSubformControlName
Me!SubformControlName.Form!SubSubformControlName.Form!TextboxName

hth
 
Back
Top