Hello all,
I have a main form with several subforms. The subforms are placed on different pages on a tab control. I would like to create navigation buttons for the subform but reside them on the main form. (The benefit being that I only have to create the buttons once–instead of five time for five different subforms.) However, I’m having a hard time figuring out what to code in order to make it happen. I’m thinking something along these lines (pseudo-code):
Sub Command_Click()
Find out which tab as been selected
Use a method to find out the name of the subform on that page
Set the focus to the subform
DoCmd.GoTo Record,,acFirst
End Sub
Now I can think of many different ways to accomplish this, but I’m hoping for a more elegant solution like the above or better. Thanks in advance for your help.