Results 1 to 5 of 5
  1. #1
    Wakin is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Jan 2017
    Posts
    2

    Print report with form data?! Help Please.


    Hello, so i've made a fully functional form, and i copied the layout of the form into a report, and i wanted to know if its possible to print the report of the form(Client data etc) with a button, or with code, since im not able to. Thank you so much.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    Docmd.printForm

  3. #3
    Bulzie is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    Nov 2015
    Posts
    1,511
    On the Form, you should be able to add a button(Design mode, Controls, look for the button and add to the form in header or foogter) which will start the wizard where you can go through the options to have the button print your report.

  4. #4
    Wakin is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Jan 2017
    Posts
    2
    But imagine, I want to select One contact and print that form as a report, is that possible?

    I've done that Bulzie, and no success

  5. #5
    Bulzie is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    Nov 2015
    Posts
    1,511
    Not sure your form layout but I assume on your form you are looking at one contact at a time and assume you have the ContactID or number(unique value) on that form. If so, then in the query on your report(if it is a table make the Recordsource a query, add all the fields and in the ContactID field criteria, add Forms!frmYourForm!ContactaID or whatever your field is called. This way when the report is run it will only pull data for the Contact you are viewing on the form.

    Another way to get the criteria field syntax is to right click in the criteria box, select build, select forms and then keep drilling down until you find your form and the field ContactID or whatever it is called and double click, it will put the right reference to that field in your criteria box.

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

Similar Threads

  1. Replies: 5
    Last Post: 08-06-2015, 03:26 PM
  2. Replies: 1
    Last Post: 02-21-2015, 11:35 PM
  3. Replies: 1
    Last Post: 02-23-2013, 12:30 AM
  4. Replies: 2
    Last Post: 02-06-2013, 09:19 PM
  5. Replies: 8
    Last Post: 11-08-2011, 05:11 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