Hi,
Currently I have a main form (frmMain), which has one subform (sfrmSubMain), which itself is made up of two sub forms(sfrmSubSub1 & sfrmSubSub2).
I'm trying to set it up, so if the user moves to record 5 for example in sfrmSubSub1, the focus in sfrmSubSub2 switches to record 5 as well and vice versa.
I have tried variants of the below code in the lowest subform but kept getting errors saying that either "sfrmSubMain" doesn't exist or is not opened even though the main form of which it is a sub form is open.
forms![frmMain]![sfrmSubMain]![sfrmSubSub2].bookmark= me.bookmark
or
forms![frmMain]![sfrmSubMain]![sfrmSubSub1].form.bookmark= me.bookmark
or
forms![frmMain]![sfrmSubMain]!Forms![sfrmSubSub1].bookmark= me.bookmark
and so on but to no avail, any help would be appreciated.
thanks,
Currently I have a main form (frmMain), which has one subform (sfrmSubMain), which itself is made up of two sub forms(sfrmSubSub1 & sfrmSubSub2).
I'm trying to set it up, so if the user moves to record 5 for example in sfrmSubSub1, the focus in sfrmSubSub2 switches to record 5 as well and vice versa.
I have tried variants of the below code in the lowest subform but kept getting errors saying that either "sfrmSubMain" doesn't exist or is not opened even though the main form of which it is a sub form is open.
forms![frmMain]![sfrmSubMain]![sfrmSubSub2].bookmark= me.bookmark
or
forms![frmMain]![sfrmSubMain]![sfrmSubSub1].form.bookmark= me.bookmark
or
forms![frmMain]![sfrmSubMain]!Forms![sfrmSubSub1].bookmark= me.bookmark
and so on but to no avail, any help would be appreciated.
thanks,