473,804 Members | 3,748 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Access Labels based on Table Value

3 New Member
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 2289
MMcCarthy
14,534 Recognized Expert Moderator MVP
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
brenttyrrell
3 New Member
I will give it a try. Thanks for your help
Apr 3 '07 #3
brenttyrrell
3 New Member
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 Recognized Expert Moderator MVP
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
3481
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 the value of the label, and working on the assumption that the <label for="???" links to the <select id="???" Below is the html that I am working from, which has been dynamically created. Unfortunately I have no control over this at all. I...
3
3717
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 a spreadsheet might show, the column names will actually be dynamic, based on data from a SQL Server 2000 database. The row data will also come from the same database. So in this case, I will have a main report and a subreport. I've already tried...
49
14364
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 application is relatively big: around 200 tables, 200 forms and sub-forms, 150 queries and 150 repports, 5GB of data (SQL Server 2000), 40 users. I'm wondering what are the disadvantages of using Access as front-end? Other that it's not...
1
2301
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 ou products are made I print product barcode labels from a separat program on a laser printer using full sheets (14 labels per sheet). I want to be able to print the data/barcode labels from a menu withi access to a single label thermal printer...
5
36881
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 code behind. However I am not able to do this at all, I am going about this wrong, I think and need guideance. If this was just straight HTML I would do this: <table> <tr><td>field 1</td><td>value 1 set by code behind</td></tr>
2
9355
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 = <<Query_Name>> Once I create the report, I m trying to create labels to display the Report title in the Report Header section.
2
3123
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 assigned to a category. The list of categories is stored in a separate linked table (let's call it Categories). The Categories table consists of entries that have an ID number and a name. I have made queries of the Main table where I make the...
3
2883
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 contacts table there is a boolean field called blnLabelDefault which identifies whether the listed contact should be used as the default for a label. There is code to ensure that no more than one
3
2202
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 tblInvoice and joins main form "frmInvoice" and subform "Allocation". -Label report "Labels qryLabels," based on a query qryLabels. qryLabels is based on tblInvoice and tblAllocation. label report "Labels qryLabels" has "invID" field. In form...
0
9706
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10583
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10337
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10323
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10082
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9160
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5525
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4301
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3822
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.