G
Guest
Hello,
I need a piece of code that will allow me to advance to records in a subform
of a subform (main form -> Subform1 -> Subform2, subform of Subform1). The
following works in Subform1 when it is not within the subform control of the
main form (code is in the Click event of a command button within subform1):
Subform2.setfocus
docmd.gotorecord , , acgoto , 2
Once I try this code from within the subform control of the main form, it no
longer works. Does anyone know of a way to correct this? I know that
subforms within subforms tend to complicate matters. Thank you for any help
you can provide!
I need a piece of code that will allow me to advance to records in a subform
of a subform (main form -> Subform1 -> Subform2, subform of Subform1). The
following works in Subform1 when it is not within the subform control of the
main form (code is in the Click event of a command button within subform1):
Subform2.setfocus
docmd.gotorecord , , acgoto , 2
Once I try this code from within the subform control of the main form, it no
longer works. Does anyone know of a way to correct this? I know that
subforms within subforms tend to complicate matters. Thank you for any help
you can provide!