Chat with a LIVE Microsoft Access Expert!
 
       
 

         

   

Go Back   Access World Forums > Microsoft Access Discussion > Reports

 
 
Chat with a LIVE Microsoft Access Expert!
Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 05-16-2007, 04:36 PM
jubb jubb is offline
Registered User
 
Join Date: Jul 2005
Location: Newcastle, Australia
Posts: 50
jubb is on a distinguished road
Send a message via MSN to jubb
Determine if subreport length is over 1 page

Hi all,

I am setting up a report to print out mailing labels with outstanding invoives printed on the back of the mailing label.

I have a main report which has the mailing details for the label and a subreport which prints the outstanding invoices on a second page of the report. ie each family has a 2 page report.

The report works fine except for when there is more than 1 page of invoices for a person as the report is printed double sided.

To notify the user if there is a problem prior to printing I need to determine if the subreport lenght is greater than 1 page long and display a message box informing the user not to print the report.

I have tried using using me.pages > 1 in the on page event of the subreport to determine if the subreport is over 1 page to no avail. The .pages doesn't seem to return a value when used in a subreport. (Checked this with a message box displaying me.pages)

Also tried report_rptName.pages - no success that way either.

Any help would be greatly appreciated.

Thanks
Jubb
Reply With Quote
Sponsored Links
  #2  
Old 05-16-2007, 05:29 PM
jubb jubb is offline
Registered User
 
Join Date: Jul 2005
Location: Newcastle, Australia
Posts: 50
jubb is on a distinguished road
Send a message via MSN to jubb
Don't worry, came up with a work around, calculated the maximum number of invoices that could fit on a page then check to make sure no families invoices is greater than that amount, if they are I skip that record in my report and print a list of families whose mailing labels were skipped.

Thanks Anyhow
Reply With Quote
Sponsored Links
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
SubReport Page Header Problem Evan_S Reports 1 03-12-2007 02:44 PM
Page headers in subreport smaumau Reports 0 08-07-2006 01:08 PM
Determine which page has focus. MsfStl Forms 4 02-02-2006 01:27 PM
Subreport Page Breaks? chaddiesel Reports 0 06-02-2005 07:53 PM
Page Numbering in a Report Dona Modules & VBA 7 02-24-2003 02:13 PM


All times are GMT -8. The time now is 10:00 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
(c) copyright 2009 Access World