Results 1 to 3 of 3
  1. #1
    trident is offline Competent Performer
    Windows 8 Access 2010 64bit
    Join Date
    Apr 2014
    Posts
    141

    DoCMD Printout

    I have a form that is continously growing.



    I created a button to print the current data or any data I want (Current Screen)

    How can I print the current page by using docmd.printout, below is the action I placed.

    Private Sub Command70_Click()
    DoCmd.PrintOut , 1, 1, , 1, NO
    End Sub

    Hope you can enlighten me on this.

    Trident

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    like you said, the form is too big....you must now use a report.
    docmd.openreport "myReport",,"[id]=" & me.id

  3. #3
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    Forms are for entering/viewing data...Reports are for printing out data, and as ranman256 said you need to create a Report for this.

    Creating a Database is a job...and as is true in most jobs, the #1 Cardinal Rule is to always use the correct tool!

    Linq ;0)>

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

Similar Threads

  1. Replies: 8
    Last Post: 08-25-2014, 04:30 PM
  2. Replies: 1
    Last Post: 09-21-2013, 10:06 PM
  3. Replies: 1
    Last Post: 01-12-2012, 02:54 AM
  4. PrintOut Macro Action
    By EHittner in forum Access
    Replies: 1
    Last Post: 09-22-2011, 01:27 AM
  5. PrintOut action
    By svcghost in forum Programming
    Replies: 11
    Last Post: 10-05-2010, 05:13 PM

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