Solved Go to top of report

KitchenDev

New member
Local time
Today, 19:58
Joined
Nov 28, 2022
Messages
4
Hi there!

I searched the reports-forum but couldn´t find a solution for:
Is there a way to place a button in a report and scroll to the top of the report via VBA? Like [Go to Top] ...

Best regards from Austria
Martin
 
Why not start at the horse's mouth? :)


As for button, yes, just add a button, not sure if you want that button to execute the above code or not? :(
 
I tried that - doesn´t work. I think that is because i´m on a report, not a form!
 
you can use Sendkeys (or in my case an alternative KeysSends).
 

Attachments

Good tip! Thanks a lot. This does the job:

Code:
Private Sub cmdHome_Click()
   SendKeys "^{HOME}"
End Sub
 

Users who are viewing this thread

Back
Top Bottom