MrMajik
IS-IT--Management
- Apr 2, 2002
- 267
I have a form that contains a subform. I also created the navigation buttons using these commands:
DoCmd.GoToRecord , ,acFirst
DoCmd.GoToRecord , ,acPrevious
DoCmd.GoToRecord , ,acNext
DoCmd.GoToRecord , ,acLast
Both the form and subform have these buttons. Here is the situation:
When the form opens I can get the form and subform to display the contents of the last record. However, when I click a navigation button on the form the data displayed in the subform always reverts back to the first record. I have to click the DoCmd.GoToRecord , ,acLast button in the subform to get the data to move to the last record.
Do you know what code will move the data in the subform to the last record when one of my navigation buttons in the form is clicked?
Thank you.
DoCmd.GoToRecord , ,acFirst
DoCmd.GoToRecord , ,acPrevious
DoCmd.GoToRecord , ,acNext
DoCmd.GoToRecord , ,acLast
Both the form and subform have these buttons. Here is the situation:
When the form opens I can get the form and subform to display the contents of the last record. However, when I click a navigation button on the form the data displayed in the subform always reverts back to the first record. I have to click the DoCmd.GoToRecord , ,acLast button in the subform to get the data to move to the last record.
Do you know what code will move the data in the subform to the last record when one of my navigation buttons in the form is clicked?
Thank you.