Results 1 to 7 of 7
  1. #1
    mnsemple83 is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Jul 2011
    Posts
    40

    Printing reports in batches

    I created a form that is used to print reports based on data supplied by the user. What I want to do now is to allow the user to select several patients at one time and a specific date value. This will allow the user to view patient records with regards to a specific date.



    What I thought would work is if I use a list box for the patient's unique identifier (their MRN), allow the selection of multiple values, then supply a date value and that would work. Unfortunately, the only thing I got was a page containing only basic information about one patient (MRN, first name, last name, zip, gender, and age) and everything else was blank. I think that I am on to something, but if anybody has any suggestions on how I can solve this problem, I welcome it.

  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,521
    Here's an example of how to use a multi-select listbox to filter a report:

    http://www.baldyweb.com/multiselect.htm
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    mnsemple83 is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Jul 2011
    Posts
    40
    I used the code that was supplied to me and it worked. Thanks.

  4. #4
    mnsemple83 is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Jul 2011
    Posts
    40
    Now that I am able to print report in batches, I need to come up with a way so that the list box only allows me to select patients who have been visited on the date supplied inside the same form. Once the date has been entered, the list box should have been filtered only to include patients with visits on that date. Is there a way to do this as well?

  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,521
    Sure; you have what is in essence the same as a cascading combo box:

    Baldy-Cascading Combos

    in that you want the selections in the list to be dependent on the date. You can use either of the techniques in that link, but using the after update event of your date textbox instead of a combo.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  6. #6
    mnsemple83 is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Jul 2011
    Posts
    40
    In the form, the date field is an unbound text box and the patient's MRN is a combo box that comes from a JOIN query with the Patient's table and the Encounter's table. They both share the MRN value and the "DateOfVisit" field from the Encounter's table is used in the query to compare the value in the form.

    I tried using the second technique because it seemed more appropriate for my form but it didn't return anything. I can't find anything wrong with the code I had written so I do not know where my error is.

  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,521
    Quote Originally Posted by mnsemple83 View Post
    I do not know where my error is.
    Not having seen your code, neither do I.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Printing Reports & Send to PDF
    By Dnphm in forum Reports
    Replies: 4
    Last Post: 02-13-2018, 07:25 PM
  2. Printing Reports on Preprinted Letterhead
    By MuskokaMad in forum Reports
    Replies: 1
    Last Post: 04-01-2011, 05:07 PM
  3. Printing reports off a list box
    By kbandong1 in forum Reports
    Replies: 3
    Last Post: 03-05-2011, 09:51 PM
  4. creating batches - please help
    By spectrox in forum Import/Export Data
    Replies: 1
    Last Post: 04-28-2009, 09:44 AM
  5. Printing Reports....
    By Danny Christie in forum Reports
    Replies: 1
    Last Post: 12-06-2006, 05:51 PM

Tags for this Thread

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