Wrox Programmer Forums
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 28th, 2006, 06:16 AM
Registered User
 
Join Date: Jul 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Page Break Issues

I have a logistics database that shows a report with all drops relative to the vehicle. I have a form that filters the query that is behind the report. This shows me all drops that are selected from a multi select list box from a form. I need to print each drop on a seperate piece of paper the report that show the drops selected is a sub form.

I am using Access 2003.

Does someone have some code that will do a For Each item selected in listbox print each drop number on a seperate piece of paper.



Thanks for any help and source code supplied
 
Old July 28th, 2006, 09:48 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

What is a drop? What is a vehicle?

What is the query that is behind the report?

What you need to do is to create a report that does only one record per page. This is easy enough if the data is consistent. However, if it is not (various lengths) then you can run a report for each "drop" in your list box. Just enumerate them and run the report where "[Drop] = " & "'" & sDrop(i) & "'"

Need more info.


mmcdonal
 
Old July 31st, 2006, 05:24 AM
Registered User
 
Join Date: Jul 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

A drop is integer value and a vehicle is of a string value.

The report is a sub report and all data is consistant. I am having trouble with the enumeration process. I would be grateful for some pointers

Thanks for any help and source code supplied





Similar Threads
Thread Thread Starter Forum Replies Last Post
SRS2005 List report having page break issues LenexaKS Reporting Services 0 August 29th, 2008 11:48 AM
Page break grstad Classic ASP Basics 5 December 31st, 2006 01:27 PM
Page Break Neal Crystal Reports 1 August 31st, 2006 10:33 AM
Page Break chakravarthy_vr Reporting Services 1 June 22nd, 2006 10:16 AM
page break pab006 Classic ASP Basics 12 December 17th, 2003 06:37 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.