Results 1 to 4 of 4
  1. #1
    kassem is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2014
    Posts
    22

    How to print a report of the current record ur on in a form.

    Hi,

    so i created a report called EstimatesR which creates a report for a form called EstimatesF which is linked to a table called EstimatesT. Can someone help me with a code that prints the report of the current form your on without the user seeing the report thats opens.



    Thanks.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    If you mean, print the report of the current record on the form....then
    DoCmd.openreport "EstimatesR", acViewPreview, , "[id]=" & Me.[ID]

    this will report only the 1 record on the form. (use your own ID fields).

  3. #3
    kassem is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2014
    Posts
    22
    Yes this opens the report, how do i print it though, i want this to happen all at once.

  4. #4
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    Replace acViewPreview with acViewNormal

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

Similar Threads

  1. Print Report from Current Record
    By hnkford in forum Reports
    Replies: 15
    Last Post: 05-22-2015, 08:08 AM
  2. Print current form with a report
    By JulieMarie in forum Access
    Replies: 1
    Last Post: 08-02-2013, 10:30 AM
  3. Replies: 7
    Last Post: 08-09-2012, 10:18 AM
  4. Print current record to a report
    By drawc in forum Access
    Replies: 2
    Last Post: 01-15-2012, 12:48 AM
  5. Replies: 5
    Last Post: 10-26-2011, 02:59 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