ACC: Printing Duplicate Mailing Labels for Each Record (1.x/2.0)

Last reviewed: May 8, 1997
Article ID: Q100146
The information in this article applies to:
  • Microsoft Access versions 1.0, 1.1, 2.0

SUMMARY

Novice: Requires knowledge of the user interface on single-user computers.

This article describes how to print multiple labels for each customer record. The example that follows uses the Customers table in the sample database NWIND.MDB.

MORE INFORMATION

The following example generates 10 labels for each customer record:

  1. In the sample database NWIND.MDB, create a new table called Label Count with one number field. Use the default properties and do not create a primary key. Enter a 1 in the first record, 2 for the second record, and so on.

          Table: Label Count
          ------------------
          FieldName: Count
    
             DataType: Number
    
    

  2. Create a new query based on the Label Count and Customers tables:

          Query: LabelQuery
          ---------------------------------
          Type: Select Query
          Tables: Label Count and Customers
          Join: None
    

  3. From the View menu, choose Totals so that all fields are set to Group By, as follows:

          Field: Company Name
    
             Table: Customers
             Total: Group By
          Field: Contact Name
             Table: Customers
             Total: Group By
          Field: Address
             Table: Customers
             Total: Group By
          Field: City
             Table: Customers
             Total: Group By
          Field: Region
             Table: Customers
             Total: Group By
          Field: Postal Code
             Table: Customers
             Total: Group By
          Field: Count
             Table: Label Count
             Total: Group By
             Criteria: <= [Enter Number of Labels to Print for Each
                       Customer]
    
       NOTE: The Count field in the Label Count table can have an optional
       parameter value specified in the Criteria field to enter the number of
       labels to print for each record in the Customers table. If this query is
       used without a parameter value, 10 identical labels are printed for each
       record in the Customers table.
    
    

  4. Using the Microsoft Access ReportWizard, create a new mailing label report based on the LabelQuery query. If you specify a parameter value, you are prompted to enter the number of labels to print for each customer record.

REFERENCES

For more information about using totals in queries, search for "queries: totals," and then "Calculate Totals in a Query" using the Microsoft Access Help menu.


Additional query words: multiple many labels how to
Keywords : kbusage RptLabel
Version : 1.0 1.1 2.0
Platform : WINDOWS
Hardware : X86
Issue type : kbhowto


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: May 8, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.