Reputation: 113
I have a subreport within a Form, and often this report has more rows than the height of the subreport. I would like to either:
I have tried, unsuccessfully, to do a SetFocus on the subform containing the report in the Form's Current event, and then in the subreport's GotFocus event add a SetFocus on one of the sum fields in the footer. If I click on the report, the GotFocus event fires and it scrolls to the bottom, but it isn't working automagically.
Any suggestions to achieve either of these outcomes would be greatly appreciated!
Upvotes: 1
Views: 1170
Reputation: 2696
Me.subreportcontrol.SetFocus
Me.subreportcontrol.Report.AnyControl.SetFocus
DoCmd.GoToRecord acActiveDataObject, , acLast
WhereAnyControl
is any control on subreport.
Upvotes: 1