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 02-17-2010, 04:19 AM
Bill Strough Bill Strough is offline
Registered User
 
Join Date: Feb 2010
Posts: 3
Bill Strough is on a distinguished road
Label sorting and printing

Using a 4"x5" label as a packing list on outside of container. Could have 10-12 line items all different with varying quanities. e.g. 10 blue widgets, 42 yellow widgets, 18 green widgets. The problem is that the container only holds a max of 36 widgets. I would like to automatically force a new label to print when the max is reached. Therefore one order could produce many labels.

Thanks in advance for your consideration of this problem.

Bill
Reply With Quote
Sponsored Links
  #2  
Old 02-18-2010, 08:35 PM
HiTechCoach's Avatar
HiTechCoach HiTechCoach is offline
Problem Solver
 
Join Date: Mar 2006
Location: Oklahoma City, OK
Posts: 3,155
HiTechCoach is a jewel in the roughHiTechCoach is a jewel in the roughHiTechCoach is a jewel in the rough
Re: Label sorting and printing

Bill,

Welcome to AWF.

You should be able to do what you want.

Do you have a question?
__________________
Boyd Trimmell, aka HiTechCoach
Microsoft Access MVP 2010
Started with Access 2.0. Now developing in Access 2010.
Business Process/Accounting/CRM Software Developer/Consultant
Programming: Nine different ways to do it right, a thousand ways to do it wrong.
Reply With Quote
  #3  
Old 02-19-2010, 03:13 AM
Bill Strough Bill Strough is offline
Registered User
 
Join Date: Feb 2010
Posts: 3
Bill Strough is on a distinguished road
Re: Label sorting and printing

Thank you for the reply, The question is, how do I accomplish this task? Where do I tell the report to print another label with the remaining line items? Is the answer in the query or the report? And what would be the code?

Bill
Reply With Quote
  #4  
Old 02-19-2010, 08:01 AM
HiTechCoach's Avatar
HiTechCoach HiTechCoach is offline
Problem Solver
 
Join Date: Mar 2006
Location: Oklahoma City, OK
Posts: 3,155
HiTechCoach is a jewel in the roughHiTechCoach is a jewel in the roughHiTechCoach is a jewel in the rough
Re: Label sorting and printing

Quote:
Where do I tell the report to print another label with the remaining line items?
I normally handle this by using a group header.

Quote:
Is the answer in the query or the report?
I would use both.


When creating a report, the first thing I do is create a query to get the desired records into a format that the report can easily handle. This does mean that you have to understand reports and how they work. Like how grouping and sorting is handled in a report.

Once the query is done, I start creating the report.

In your case, I would definitely start with the query.

Based on how you are needing to group records, I would probably use a temp table to store the primary key and any other data needed for determining how to group by label. I would use VBA code to loop the recordset and assign a label number. This would be use in the report as a grouping field.

I have find that this method will make the report very simple and easy. Which usually means the report will run faster and have less issues.
__________________
Boyd Trimmell, aka HiTechCoach
Microsoft Access MVP 2010
Started with Access 2.0. Now developing in Access 2010.
Business Process/Accounting/CRM Software Developer/Consultant
Programming: Nine different ways to do it right, a thousand ways to do it wrong.
Reply With Quote
  #5  
Old 02-19-2010, 09:13 AM
Bill Strough Bill Strough is offline
Registered User
 
Join Date: Feb 2010
Posts: 3
Bill Strough is on a distinguished road
Re: Label sorting and printing

Thanks for the comments. It's apparent that I do indeed need to have a better understanding of report grouping etc. I will see what I can do with what you have suggested. Thanks again
Reply With Quote
Sponsored Links
Reply

Tags
grouping, labeling, reports, sorting

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
printing records with matching addresses MarkGardner Reports 1 03-27-2008 02:33 PM
Some report records not printing azimuth79 Reports 1 12-28-2006 11:41 PM
Printing Reports Carly Reports 2 08-01-2003 12:03 AM
Printing one record geomc Reports 7 03-08-2003 05:39 PM
Hide pages from VBA Without setting Sorting and Grouping Graywolf001 Reports 0 06-20-2000 07:44 AM


All times are GMT -8. The time now is 09:39 AM.


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