Open to a NavButton programatically using VBA ?

liamfitz

Registered User.
Local time
Today, 01:22
Joined
May 17, 2012
Messages
240
I'm trying to use the following to open to a particular NavButton ( on Navigation Form ) in VBA
Code:
DoCmd.BrowseTo acBrowseToForm, "frmActiveReferrals", "NavigationForm.NavigationSubForm"

The problem is in the last parameter i.e. Form 'path'. can anyone assist ?

My form names are frmReferrals which is the Navigation Sub Form on frmNavigationTop ( this is in turn is a 'subform' of another Navigation Form named frmNaviagtionLeft ) This is in the Load event of frmNavigationTop. Thanks.:confused:
 
Sorry, but it still doesn't work. Should it be in the Load event of The 1st (top) level Navigation Form ( frmNavigationLeft ). The main/first Form is frmNavigationLeft. This has two tabs ( on the left ! ), one of which is selected by default, this tab contains a 'subform' Navigation Form with 3 tabs ( at the top - frmNavigationTop ) one of which I wish to open, and holds sfrmReferrals as its Navigation Sub Form ?
 

Users who are viewing this thread

Back
Top Bottom