Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Go To A Report Page 1

Status
Not open for further replies.

vbcnew55

Technical User
Mar 2, 2008
7
CA
Hi,

Can someone help by telling me what the code is to move to a particular page number on an Access Report?

Using code, I have variables that capture the start page of each sub report. Now what I want to do is add functionality to go directly to that page number within the report.

There's a gotoPage method for Forms, but nothing for Reports.

Can someone help direct me to a reference to create this functionality?

Thanks.
 
DoCmd.OpenReport ReportName, acPreview
Dim i, j As Byte

i = YourPageNumber
SendKeys "{F5}{Delete}"
For j = 1 To i
SendKeys i & "{ENTER}"
Next j
 
shorter

DoCmd.OpenReport ReportName, acPreview
Dim i As Byte

i = YourPageNumber
SendKeys "{F5}{Delete}"
SendKeys i & "{ENTER}"
 
orna,

You must have an excellent resource for hotkeys.

Would you mind posting it?

I had no idea about F5.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top