Jun 24 2024 04:37 AM
Hi
I have a parent form with a linked child table which all works fine but I want to hide the navigation buttons on the linked table. I know the VBA code for hiding the buttons but the only event handlers are On Enter and On Exit so the code only works when the table is clicked. I cannot find anywhere with information on how to do this or if it is even possible
Can anybody help?
Thanks
Jun 24 2024 05:22 AM
First, let's see if we can get on the same page with the descriptions.
Forms don't have "linked child tables". We need to know what that means in this context.
A form can contain an embedded subform. And the subform would be bound to a different table. The two forms can be linked like this.
Maybe you can provide a screenshot of what you see so that can guide us to what the situation is in your context.
All forms have the property which allows you to show or hide the Navigation buttons, so there's no need to do that programmatically. Perhaps that's all you need to do.
A screenshot of what you see can help confirm what we're working with.
Jun 24 2024 05:41 AM
Hi George, thanks for the reply. I should say I'm no Access expert. I referred to it as a linked child because of the entries you have pointed to in the data tab. Anyway, here's the screenshot which shows the navigation buttons for the table which are the ones I want to hide.
Design View shows the Table like this:
The navigation button property only applies to the main form. The are no navigation button options for the table.
Jun 24 2024 08:33 AM - edited Jun 24 2024 08:59 AM
Hi Chris,
The second picture shows that you have used a table as Source Object of the subform. Instead of this, first create a form on the basis of the table, save that form, and use this new form as Source Object of the subform. Then you have the properties to hide the navigation buttons as described by George.
Servus
Karl
****************
Access Forever
Access News
Access DevCon
Access-Entwickler-Konferenz AEK
Jun 25 2024 02:13 AM - edited Jun 25 2024 02:14 AM
@ChrisAKFS , you can also use VBA to hide the subform's Navigation button.
You add code to the Main form's Load event:
Private Sub Form_Load()
Me.SubformNameHere.Form.NavigationButtons = False
End Sub
Jun 25 2024 06:46 AM
SolutionJul 01 2024 12:43 AM
Thanks to you all for your answers. I chose to remove the embedded table and insert a subform for which I now have the controls I need.
Jun 25 2024 06:46 AM
Solution