I have an Access 2010 form that has a child subform based on a query. I am trying to hide the navigation buttons for the subform.
Code:
Private Sub Form_Open(Cancel As Integer)
'Me.Form.NavigationButtons = False
Me.Child001.Form.NavigationButtons = False
End Sub
Code:
Private Sub cmdCloseForm_Click()
'Me.Form.NavigationButtons = True
Me.Child001.Form.NavigationButtons = True
End Sub
The parent form's Navigations Button property is set to No, as is its Record Selectors. The problem I am having is that the navigation buttons is hidden the first time I open the form after adding/altering the code but then displays each subsequent opening of the form. Changing the properties back when closing does not seem to make a difference.
Ideas as to why this is happening and how I can fix it?
Many thanks in advance.