473,396 Members | 1,683 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Access Labels based on Table Value

I am really hoping that someone can help me out of this problem I am having.

I have created a database for the purpose of printing labels for manufacturing purposes. I have a table say 'production data' where I am entering the details of the product and the quantity to be manufactured on that day.
I also have a report label template, which will print the label for me based on the days production.
My problem is that the label report only prints one of the label in the report. Obviously as it only prints each record once. However I would like to work out a way to print the quantity of labels based on the 'Qty' column in the same table.

For example

Product P21544 x 5 and P24512 x 2 I want 5 copies of P21544 and 2 copies of P24512. All to be printed on the same report page to use the minimal amount of label paper.
By the way we are using A4 label paper not a continious line of label paper.

I really do hope someone can help me I have tried everything !!!!!

THANKYOU IN ADVANCE ANYONE THAT CAN HELP
Apr 2 '07 #1
4 2274
MMcCarthy
14,534 Expert Mod 8TB
Something like this might work ...
Expand|Select|Wrap|Line Numbers
  1. Dim qty As Integer
  2. Dim rptName As String
  3.  
  4.    qty = <How would you find the quantity of the report>
  5.    rptName = <How would you find the name of the report to print>
  6.    DoCmd.OpenReport rptName, acViewNormal
  7.    DoCmd.PrintOut , , , acHigh, qty, NO
  8.    DoCmd.Close acReport, rptName
  9.  
Mary
Apr 2 '07 #2
I will give it a try. Thanks for your help
Apr 3 '07 #3
Unfortunately this did not work.
This code printed multiple copies of the same report rather than quantities of the same label on one page based on the table value.
Apr 3 '07 #4
MMcCarthy
14,534 Expert Mod 8TB
Unfortunately this did not work.
This code printed multiple copies of the same report rather than quantities of the same label on one page based on the table value.
This may have more to do with your reports page layout.
Apr 3 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Martin O'Rourke | last post by:
All, I am hoping someone might be able to put me out of my misery and let me know if it is possible or not to dervie the name of an element in a form, based on its associated label, only knowing...
3
by: CSDunn | last post by:
Hello, I have a situation with MS Access 2000 in which I need to display report data in spreadsheet orientation (much like a datasheet view for a form). If you think of the report in terms of what...
49
by: Yannick Turgeon | last post by:
Hello, We are in the process of examining our current main application. We have to do some major changes and, in the process, are questionning/validating the use of MS Access as front-end. The...
1
by: sbnj | last post by:
I have an existing database up and running great but im looking to ad some new features. I currently import a "new orders" file everyday the file contains order #, item #, qty ordered etc... when...
5
by: Richard Dixson | last post by:
I created a new C# web application. Basically all I am trying to do is create a table that consists of a few rows with two columns in each. And then to set those columns to text values from my...
2
by: amith.srinivas | last post by:
Hi all, From a word macro in VBA, I am trying to create a report in access DB. The report is based on a query with a parameter. I am using Set rpt = Application.CreateReport rpt.RecordSource =...
2
by: ghadley_00 | last post by:
Hi, Is there a way to have the labels in a MS access database switchboard dynamically generated based on values in a table? I have a table of items (let's call it table Main) , each of which is...
3
by: Andrew | last post by:
Hi All I wonder if anyone can help me with this. The scenario is that I have a pair of related tables. One contains record labels, the other contains contact names at those labels. In the...
3
by: Apple001 | last post by:
I am having hard time finding the way to make the database below. I have: -Form "frmInvoice" with subform "Allocation" based on table "tblInvoice" and "tblAllocation". "invID" is auto number in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.