Please, Please help ! navigation subform referencing

liamfitz

Registered User.
Local time
Today, 20:30
Joined
May 17, 2012
Messages
240
I must have tried every permutation, so it's probably something simple, but please .... how do I open programatically a tab in Nav. Form ?

I have a Nav Form ( say, name = frmNav1 ) holding another ( say Nav2 ) on one of the tabs ( ON Nav2 ) a form called sfrmReferrals ( a user designed form - showing when one of the tabs is clicked - NOT THE FIRST- which shows on load by default a from called frmClients is on this one) So Do I use literal values/names frmNav1.frmNav2, or Main ( or Navigation Form. NavigationSubForm etc. ???:banghead:
 
I've worked it out. The trick is, in when to use literal names, and when to use generic i.e NavigationSubForm would be generic whereas frmClients is literal. Thank you for all help.
 
Liam,

If you figured this out could you post how you referenced it. I have been attempting this for weeks unsuccessfully :(.

Thanks,
Samantha
 
Here's a good example. I am storing a value from a control (Referral_ID) on a 'sub-form' called sfrmReferrals, in a variable named 'r'. The sub-form ( sfrmReferrals ), is in turn a sub-form of a main form, which is 'on' a navigation form ( frmNavigationLeft). From this, you should be able to work out the logic/hierarchy, and substitute in your own form/control names where appropriate. Any difficulties post again. Good luck.

Code:
r = Forms!frmNavigationLeft!NavigationSubform.Form!NavigationSubform!sfrmReferrals.Form!Referral_ID
;)
 

Users who are viewing this thread

Back
Top Bottom