Set frm = Me.Parent.[3].Form.[3a].Form
Me.Parent.[3].Form.[3a].SetFocus
DoCmd.RunCommand acCmdRecordsGoToNew
as well as
Set frm = Me.Parent.[3].Form.[3a].Form
Me.Parent.[3].Form.[3a].SetFocus
DoCmd.GoToRecord acDataForm, "Przesylka", acNewRec
I am convinced the reference is correct but...
AceMan,
i can not catch it. Although i finally set focus on the (3a) (msgbox indicates the reference is proper),
DoCmd.RunCommand acCmdRecordsGoToNew
seems to refer to Form(2) because it adds a new record to this form(2).
I tried several times to set (3a) within an 'adding record' metod...
Thanks You guys,
sorry I haven't respond quicker but I had to xchange my notebook ;)
Remou, Your last sample does work properly - msgbox shows a good reference and display the "Text0" value but after I finaly type:
RunCommand acCmdRecordsGoToNew I receive a bug executing it kind of: "Run-time...
Thanks U both Remou & AceMan,
I made a small mistake. I exaggerated with a number of those subs - there is no such as 3aa, sorry.
I have Main Form (1) with two parallel subforms (2) and (3).
(3) has its own subform (3a).
The last one (3a) is the one I need to refer to with a control placed...
Hi everyone,
short notice than a question.
I have a Main Form (1) with:
- SubForm (2) and
- SubForm (3) that has its own subform (3a) that has also its own(3aa).
Such sophisticated structure was a need to retrieve at once data by end-users (phone-consultants)
So, does anybody have an idea...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.