Results 1 to 9 of 9
  1. #1
    cebrower is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2018
    Location
    Spring Lake, MI
    Posts
    110

    Print report to Dymo LabelWriter

    I have a report with 2 text fields that goes to a Dymo label printer. See attached. The order might have multiple line items, so it loops through a hidden form printing one label for each line item. The problem is that it prints each field on a separate label. The customer is on one label and the product description is on the next label. So for an order with 10 line items I get 20 labels instead of 10. Any suggestions?
    Attached Thumbnails Attached Thumbnails Label.JPG  

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,926
    That does seem odd. What do you mean by 'loops' - some VBA code? Post that procedure.

    Why do you need looping code? Why are you referencing fields of form instead of binding report to records?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,428
    what is the size of the actual label? Needs to be around 15/16th of an inch based on your report image

  4. #4
    cebrower is offline Competent Performer
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2018
    Location
    Spring Lake, MI
    Posts
    110
    The idea is to print one label for each item on an order. The user clicks a button on the order entry form. This triggers some VBA code that opens a form displaying the items on the order in datasheet view and prints the report for each record. This feature is normally used in May when we ship certain products (we grow plants) to certain customers. It worked perfectly last May, but the Dymo printer was damaged this winter and replaced with the exact same model. Since then it has been printing the customer name on one label and the product description on the next so I get twice the number of labels.
    Attached Thumbnails Attached Thumbnails LabelCode.JPG  

  5. #5
    cebrower is offline Competent Performer
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2018
    Location
    Spring Lake, MI
    Posts
    110
    The actual label is 3 1/2" wide X 1 1/8" tall. Avery 4150

  6. #6
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,428
    perhaps it is a setting in the printer - it thinks it is using a different size label

  7. #7
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,926
    Code should be posted as formatted text between CODE tags, not as an image.
    Or provide db for analysis. Follow instructions at bottom of my post.

    I'm still not understanding why you use looping code as opposed to setting report to force new page after each record - a page being a label. I don't even understand how this recordset is relevant to the procedure. Its data is not used. If you open it only to determine if there is data to report and number of records, a DCount() can accomplish that.

    Exactly how does the report get data? Seems to me the form references would return the same values repeatedly within loop.

    I have never seen this sort of setup.
    Last edited by June7; 05-16-2023 at 10:09 PM.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  8. #8
    cebrower is offline Competent Performer
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2018
    Location
    Spring Lake, MI
    Posts
    110
    I don't know what I was thinking. I changed it so a query selects the appropriate records and that becomes the data source for the report. Thanks everyone.

  9. #9
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,926
    I don't use dynamic parameters in queries. I prefer to apply filter criteria to forms and reports.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 1
    Last Post: 06-21-2022, 02:39 AM
  2. Replies: 3
    Last Post: 04-28-2017, 09:51 AM
  3. Replies: 5
    Last Post: 08-06-2015, 03:26 PM
  4. Replies: 1
    Last Post: 02-21-2015, 11:35 PM
  5. Replies: 6
    Last Post: 03-01-2014, 07:07 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