Navigation Buttons Help

CBG2112

Registered User.
Local time
Today, 16:13
Joined
Aug 4, 2009
Messages
32
I'm using the same form to enter and browse records. I would like to make the navigation buttons invisible when user enters records and visible when users are browsing through them. Is there away to code this on the form? Thanks.
 
Are you speaking of custom nav buttons or the native ones that come as part of a form?
 
I'm speaking about the native nav buttons. I tried coding it using the visible property but it won't let me.
 
To make them disappear

Me.NavigationButtons = False

To make them re-appear

Me.NavigationButtons = True

Something like this will do to implement it:
Code:
Private Sub Form_Current()
 
 If Me.NewRecord Then
  Me.NavigationButtons = False
 Else
  Me.NavigationButtons = True
 End If

End Sub
Private Sub Form_AfterUpdate()
 Me.NavigationButtons = True
End Sub

You'll either have to use the Record Menu to save the record, since you cannot move off of a new record with the nav buttons gone, or add a custom "Save" button if the form is a Single View or Continuous View form.
 
when entering new records you can set the DATA ENTRY property to YES

then you only see the new records (although you STILL get navigation buttons for the records entered in the current session).

alternatively, you could use an unbound form to enter new records.
 

Users who are viewing this thread

Back
Top Bottom