Results 1 to 5 of 5
  1. #1
    jamz is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2018
    Posts
    13

    Print data on forms


    Hi everyone!

    Click image for larger version. 

Name:	Capture.JPG 
Views:	24 
Size:	102.0 KB 
ID:	35267

    I hope everyone can help me with this. I have main form and sub-form( please see picture above), whenever I print those forms(main and sub), since my data in subform is around 500 records or rows, why is that the only first page will print, so instead of 500, only 20 to 30 records will print depends on the records fitted on a landscape A4 size paper.. Please help me, what is the problem with my work? thank you in advance.

  2. #2
    Minty is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,003
    Use a report. Forms are for data entry and display, reports are for printing.
    Form printing is very limited in it's use, as you have discovered, it will literally render what is on screen.

    On the report use the main form data as your header, and the sub form data as your detail lines.
    Use the grouping functions on the report to get the desired layout.
    DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
    Please use the star below the post to say thanks if we have helped !
    ↓↓ It's down here ↓↓

  3. #3
    jamz is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2018
    Posts
    13
    Hi Minty, thank you for your reply. If ever I will use Report to print data, how can I easily find or search PCBA PN, I have tried that Report cannot use command button, is there other way to easily find PCBA PN instead of clicking next below button, because I think I have 200 PCBA PN's, It will be hard for the user to print out the specific PCBA PN by finding desired PN one by one..Hope you can help me please, thank you in advance.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,963
    Code behind button on form opens report filtered to the value:

    DoCmd.OpenReport "reportname", , , "[PCBA PN]='" & Me.[PCBA PN] & "'"
    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.

  5. #5
    jamz is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2018
    Posts
    13
    Hi June7, I think your idea is excellent. I tried the code, but I will put it on "Print" button instead of "Find button".. Beacuase I need to find first the PCBA PN that will be print out before I click the print button with the above code. Thank you very much

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

Similar Threads

  1. Replies: 4
    Last Post: 01-20-2016, 02:24 PM
  2. Print Preview for Forms
    By DianeG in forum Forms
    Replies: 1
    Last Post: 02-03-2011, 09:33 PM
  3. Print only Forms specified by user
    By yes sir in forum Access
    Replies: 25
    Last Post: 10-01-2010, 11:56 PM
  4. Print Forms
    By Desstro in forum Forms
    Replies: 1
    Last Post: 09-04-2010, 02:23 AM
  5. Print preview with forms
    By jonesy29847 in forum Reports
    Replies: 4
    Last Post: 07-13-2010, 10:36 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