All,
I have been struggling mightily for a couple of days now with what should be a very simple procedure. In short, I have placed a subForm (subClients) on the Navigation form of my application. The Navigation form (NavigationSubForm1) has navigation buttons to go to the first/last/next/previous record on the datasheet of the subForm. If the subForm is run standalone, the navigation buttons work just fine with: DoCmd.GoToRecord , , acNext
I realize that the use of the Navigation form requires a different naming convention, but no matter what variation I try, it simply will not work.
Here are the forms I am using:
-MainMenu
-NavigationSubForm1
-subClients (derived from form ClientMain)
Note that when I click on the navigation buttons, I can successfully give focus to the subform with: Me![subClients].SetFocus
However, none of the following commands will move the record pointer when the navigation buttons are fired with the OnClick event:
DoCmd.GoToRecord , , acNext
DoCmd.GoToRecord acDataForm, "Me![subClients]", acNext
DoCmd.GoToRecord acDataForm, Me![subClients], acNext
DoCmd.GoToRecord acDataForm, "Forms![MainMenu]![NavigationSubForm1]![subClients]", acNext
DoCmd.GoToRecord acDataForm, "Forms![MainMenu]![NavigationSubForm1]![subClients]", acNext
DoCmd.GoToRecord acDataForm, Forms![MainMenu]![NavigationSubForm1]![subClients], acNext
DoCmd.GoToRecord acDataForm, "Forms![MainMenu]![NavigationSubForm1]![ClientMain]", acNext 'ClientMain is the form from which subClient is derived.
I have also tried putting DoCmd.GoToRecord , , acNext in the code of the subForm, making it Public and calling the procedure from the navigation buttons of the parent form. No joy.
Can someone shed some light on the proper syntax or procedure for me? I am pulling my hair out over this simple task.
What am I missing?
Thank you,
-Paige