Results 1 to 8 of 8
  1. #1
    e-support is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Jan 2017
    Posts
    9

    Print report from a single Tab entry/record.


    I have created a basic DB with general customer information at the top, several 'tabs' (subforms) below collecting various other information, and then report buttons. I have set the reports to prompt for parameters (eg. ID & date of record entry, under each of the 'tabs' (subforms). I have been asked, is there a way to just click on (highlight) one entry under these tabs and print a report without the need to enter any parameters, just to print the general information above and the linked data in the tab/record? Hope that makes sense.

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,518
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    NTC is offline VIP
    Windows 10 Access 2013
    Join Date
    Nov 2009
    Posts
    2,392
    a report can be bound on a query

    the query in turn can call in criteria from a control/field(s) in your form

    assuming the value is already in a field in the form there is no need to have a parameter prompt

  4. #4
    e-support is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Jan 2017
    Posts
    9
    Quote Originally Posted by NTC View Post
    a report can be bound on a query

    the query in turn can call in criteria from a control/field(s) in your form

    assuming the value is already in a field in the form there is no need to have a parameter prompt



    I have created a query to generate this report, but if I don't enter a parameter, it creates a report for all records, not just the highlighted record.

  5. #5
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,518
    Did you try post 2?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  6. #6
    e-support is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Jan 2017
    Posts
    9
    Quote Originally Posted by pbaldy View Post
    Did you try post 2?
    Oops, sorry...I'm a bit new to all of this.

    On reading your 'wherecondition' it looks like it would still be a two-step process to generate a single report from a single field. Sorry, I'm not that up on coding...

  7. #7
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,518
    Not sure what you mean. You'd use OpenReport instead of OpenForm.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  8. #8
    NTC is offline VIP
    Windows 10 Access 2013
    Join Date
    Nov 2009
    Posts
    2,392
    there is more than 1 way to skin this cat

    the WHERE clause as suggested by PBaldy is one way - his advice is expert

    another way is per my initial post; I suggest my way as somewhat easier for novice in that the Query can be run stand alone

    based upon your reply to my initial post it would appear you do not grasp using the criteria in the query from a field value in an open form; one controls the query results by modifying the criteria - such as hard typing in "red" so it returns only records with red in that field.... or by using a parameter prompt as you have done.. but another way is this can be done more creatively by calling in a value of a field of an open form: instead of entering "red" one enters: Forms!FormName.FieldName
    and the query will return records for whatever is in that field

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

Similar Threads

  1. Print single record in report and view
    By banpreet in forum Reports
    Replies: 3
    Last Post: 01-12-2017, 02:38 PM
  2. Search and Print Single Record in a Report
    By Candy_Tech in forum Reports
    Replies: 2
    Last Post: 01-12-2017, 01:20 PM
  3. Print out single record onto a report
    By CQCDave in forum Access
    Replies: 2
    Last Post: 04-23-2015, 06:54 AM
  4. Print out single record onto a report
    By CQCDave in forum Access
    Replies: 14
    Last Post: 01-08-2015, 12:55 PM
  5. How to print a single Record's report?
    By yes sir in forum Access
    Replies: 7
    Last Post: 09-20-2010, 07:31 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