Results 1 to 6 of 6
  1. #1
    cbrsix is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2011
    Posts
    214

    Labels

    I am trying to print labels out. I went to the label wizard and created the label, but my problem is that it returns all of the records in the table. I want it to print one label per ID from that table. What is the proper VBA coding to use?

  2. #2
    pdebaets is offline Competent Performer
    Windows Vista Access 2010 (version 14.0)
    Join Date
    Jul 2010
    Location
    Los Angeles
    Posts
    235
    Try this:

    DoCmd.OpenReport "MyLabelReport", , , "MyTableIDField = " & Forms!MyFormName!MyRecordIDControlName

  3. #3
    cbrsix is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2011
    Posts
    214
    I'm not quite sure I understand this..

    What do the , , , do? And the label is pulling the information right from the table, not a form..does that matter?

  4. #4
    pdebaets is offline Competent Performer
    Windows Vista Access 2010 (version 14.0)
    Join Date
    Jul 2010
    Location
    Los Angeles
    Posts
    235
    Do you want to print labels for every record in your table, or do you want to print one label for a particular record of your table?

  5. #5
    cbrsix is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2011
    Posts
    214
    My table consists of active and inactive clients where I have their SSN in there and I only want to print one label per active SSN. One client may have more than one account.

  6. #6
    pdebaets is offline Competent Performer
    Windows Vista Access 2010 (version 14.0)
    Join Date
    Jul 2010
    Location
    Los Angeles
    Posts
    235
    Create a query that retrieves just the records you need. Use that query as the recordsource for your label report.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Printing Labels.
    By Robeen in forum Reports
    Replies: 1
    Last Post: 05-02-2011, 05:32 PM
  2. combo box labels
    By workindan in forum Forms
    Replies: 1
    Last Post: 06-16-2010, 11:13 AM
  3. Help Please - Programming Labels
    By graviz in forum Programming
    Replies: 4
    Last Post: 03-02-2010, 10:37 PM
  4. Labels
    By MFS in forum Programming
    Replies: 2
    Last Post: 01-28-2010, 07:01 AM
  5. cannot print labels
    By Diane in forum Database Design
    Replies: 4
    Last Post: 12-29-2005, 08:19 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums