Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms / October 2005

Tip: Looking for answers? Try searching our database.

navigation buttons only to be shown with specific criteria met

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Russ - 18 Oct 2005 17:30 GMT
Is there a way to get the navigation buttons only to be shown when a specific
criteria it met?
Sometimes I want them to be shown and other time not.
How can I accomplish this?
Brendan Reynolds - 18 Oct 2005 19:40 GMT
The details will depend on what your criteria are, but by way of example ...

Private Sub Form_Current()

   If Me.TestID Mod 2 Then
       Me.NavigationButtons = True
   Else
       Me.NavigationButtons = False
   End If

End Sub

Signature

Brendan Reynolds

> Is there a way to get the navigation buttons only to be shown when a
> specific
> criteria it met?
> Sometimes I want them to be shown and other time not.
> How can I accomplish this?
Klatuu - 18 Oct 2005 19:49 GMT
Yes, Me.NavigationButtons = True to turn them on
Me.NavigationButtons = False to turn them off

> Is there a way to get the navigation buttons only to be shown when a specific
> criteria it met?
> Sometimes I want them to be shown and other time not.
> How can I accomplish this?
BruceM - 18 Oct 2005 19:55 GMT
If you are referring to the built-in navigation buttons, in the form's
Current event:

If  'condition is met' Then
   Me.NavigationButtons = False
   Else
       Me.NavigationButtons = True
End If

Same idea applies with custom navigation buttons (or any controls) that you
place on the form, except that Me.NavigationButtons = False is replaced with
Me.YourControlName.Visible = False

> Is there a way to get the navigation buttons only to be shown when a
> specific
> criteria it met?
> Sometimes I want them to be shown and other time not.
> How can I accomplish this?
Russ - 18 Oct 2005 23:36 GMT
Wow, thanks for all the great advise!

>Is there a way to get the navigation buttons only to be shown when a specific
>criteria it met?
>Sometimes I want them to be shown and other time not.
>How can I accomplish this?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.