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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open report with last page 2

Status
Not open for further replies.

berg43

Technical User
May 27, 2004
4
NL
I like to open a report with the last page instead of the first page.Can anybody help how to do this.Thanks
 
Depending on how your recordset is sorted,
just use the Where argument, of the open Report Method

Docmd.OpenReport "rptReport",,,"pkID =" & DMax("pkiD","tblSales")

Docmd.OpenReport "rptReport",,,_
"txtDate=#" & DMax("txtDate","tblSales") & "#
 
Zion,

Thank you for your help,but this is not what I am looking for.Your solution shows only the last data in the report, but I am looking for an report with for example 6 pages to open with page 6 instead of page 1.
 
Thanks Starpassing , works perfect !!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top