Page 1 of 2 12 LastLast
Results 1 to 15 of 18
  1. #1
    Raveen1609 is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Dec 2019
    Posts
    53

    Thermal Printing of a Receipt from a Report

    Hi, I am creating a database for my small business to print POS billing. I use a form with a subform datasheet to enter the product details. Created a report to open the form for printing the same record. Now I have 2 issues, the column width of the fields are not same and sometimes change. the next issue is when I call the report for printing in a thermal printer, the space is too much for the totals. I want the totals to be just next to the last item of the invoice.




  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Explain "report to open the form for printing". Should that be "form to open the report"?

    Textboxes do not randomly change width. On report, textbox length can grow but not width.

    Are you using report footer for totals?

    If you want to provide db for analysis, follow instructions at bottom of my post.
    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
    Raveen1609 is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Dec 2019
    Posts
    53
    Thanks for the response. I am not able to upload as it is 1.5mb. Yes it is a form to open the report for printing. This is for invoice printing. I created the invoice billing on a form and a subform (datasheet) to populate the list of billing items. and use cmd button to open the report for printing. However I am attaching the screenshots herewith.

  4. #4
    Raveen1609 is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Dec 2019
    Posts
    53
    Click image for larger version. 

Name:	image1.jpg 
Views:	35 
Size:	115.0 KB 
ID:	47721Click image for larger version. 

Name:	image2.jpg 
Views:	33 
Size:	65.8 KB 
ID:	47722

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Should button say "Open Report for Print" or "Open Invoice for Print"?

    Is total in report footer? Maybe use group or page footer.
    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.

  6. #6
    Raveen1609 is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Dec 2019
    Posts
    53
    Thanks Yes, Open invoice for Print.

    Total is in the Report footer. I tried to keep the totals in the page footer, in that case the total goes further down the page. There is a big space between the items datasheet and the totals.

    I have 4 field columns in the subform datasheet, the width of the columns sometimes changes and goes out of the printing area.

    Thanks

  7. #7
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    What does width of subform datasheet columns have to do with printing report?

    Again, suggest you provide a reduced version of your db. Make copy and include only objects and code necessary to present issue. Zip with Windows Compression.
    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
    Raveen1609 is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Dec 2019
    Posts
    53
    I have attached the DB, it may not look professional, please bear with me. Your suggestions for improvement are welcome.

    I want to print the form "Invoice Entry Form". I have created a report from the same form Report Name "Invoice Print Report".

    Now my issue is the Field width columns in the report for printing are changing and going out of paper range. Many thanks.

  9. #9
    Raveen1609 is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Dec 2019
    Posts
    53
    Please note this DB is still not completed.

  10. #10
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Advise not to use space in any object names. You essentially followed this convention for field names except for [Purchase Date]. Also advise not to use exact same field name in multiple tables.

    Should set VBA editor to automatically include Option Explicit into header of new modules. Will have to manually add to existing.

    Probably a big part of issue is using a form on report. Build a report to use as subreport. Or don't use subreport at all. As far as I can tell, report can be designed without one.

    [Invoice Details Table] should not have both ProductID and ProductName fields, just ProductID.

    Suggest setting GridX and GridY properties to 24.
    Attached Thumbnails Attached Thumbnails Capture.JPG   Capture2.JPG  
    Last edited by June7; 05-02-2022 at 12:00 AM.
    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.

  11. #11
    ssanfu is offline Master of Nothing
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Also, you should not use Look up FIELDS in tables...

    see The Ten Commandments of Access

    and

    The Evils of Lookup Fields in Tables

  12. #12
    Raveen1609 is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Dec 2019
    Posts
    53
    I understand. Thanks very much for your advise. I bookmark the website. I created the report for printing and it is ok. Thanks. Now the column width in the form "Invoice Entry form" looks like changing, sometimes become smaller width or more width. Help on this please.

    Is there any link or guide for "How to send sms & whatsap from Access on a click of a command button" Thanks thanks

  13. #13
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,943
    Quote Originally Posted by Raveen1609 View Post

    Is there any link or guide for "How to send sms & whatsap from Access on a click of a command button" Thanks thanks
    Yes, Google
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  14. #14
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Quote Originally Posted by Raveen1609 View Post
    I created the report for printing and it is ok. Thanks. Now the column width in the form "Invoice Entry form" looks like changing, sometimes become smaller width or more width. Help on this please.
    Did you modify report as suggested in post #10 and not use subreport/subform?

    "Invoice Entry form" uses form in Datasheet view. This always user to manually change column widths. When form closes, those adjustments are saved. Column widths do not arbitrarily change on their own.

    Are there multiple users of this same database file? A multiple simultaneous user database should be split with each user running their own copy of frontend.
    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.

  15. #15
    Raveen1609 is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Dec 2019
    Posts
    53
    Hi, Thanks very much. Yes Post#10 has been resolved. Please help me on the following issues.
    1. AutoNumber for Invoice ID is not working well, so I have created a field for counting Bill numbers. I use
    Private Sub Form_BeforeInsert(Cancel As Integer)
    BillNo = DMax("BillNo", "Invoice Table") + 1
    End Sub

    On loading the new form new record, I setfocus on Clock1 Field. OnExit the clock1 field, the bill number is adding +1 and it is working fine. Now the problem is when I click go to previous record navigation button, the counter is adding another empty record with the next number and then going back to previous record. Another record is created without datas and only with the BillNumber.

    2. In the sales receipt after selecting and entering the required products in few rows, I need to set focus to the printing command button in the Form footer section, which I am not able figure out. Everytime after completing the receipt, I need to use mouse to click on the button, whereas I need to use tab / Enter Keyboard, for directly going to the cmdPrint button. so that I can use entirely keyboard to complete the invoicing. Avoid using mouse to speed up invoicing.

    Thanks

    Kindly help

Page 1 of 2 12 LastLast
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Virtual thermal receipt printer
    By bilalo in forum Reports
    Replies: 1
    Last Post: 02-24-2020, 01:43 PM
  2. POS Applcation printing on thermal printer
    By Business in forum Programming
    Replies: 3
    Last Post: 05-27-2016, 11:22 AM
  3. Printing receipt from an applciation
    By Business in forum Programming
    Replies: 5
    Last Post: 05-27-2016, 09:00 AM
  4. Thermal printer Slow printing
    By Nasir Ali in forum Programming
    Replies: 2
    Last Post: 05-28-2014, 08:13 AM
  5. Replies: 0
    Last Post: 01-09-2013, 10:52 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