Share via

Setting NavigationTargetName on Nav Control

Anonymous
2015-05-19T22:39:15+00:00

I have a form that contains a Navigation Control.  The Nav Control contains one navigation button (tab).  The Navigation Target Name for the nav button is a report in my database.  What I'd like to do is change the Target Name programmatically using VBA.  This seems pretty straight forward, but the code I'm using is not working.  Here's the code that's behind the command button:

Private Sub myCmdButton_Click()

Me.NavigationButton.NavigationTargetName = "myreport1"

Me.NavigationButton.Requery

'Me.NavigationSubform.Requety

End Sub

I've also tried requiring the Navigation Control (I've commented this out above), but this doesn't work either.

I don't want to use a regular tab control because reports cannot be loaded/added to such controls.

Any ideas?

Thanks,

Manuel

Microsoft 365 and Office | Access | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Anonymous
    2015-05-20T19:30:16+00:00

    Bump...

    Was this answer helpful?

    0 comments No comments