Results 1 to 4 of 4
  1. #1
    kbandong1 is offline Novice
    Windows Vista Access 2002
    Join Date
    Mar 2011
    Posts
    2

    Printing reports off a list box

    I'm trying to show a print preview of reports that I have made. I was originally going to make separate command buttons to do so but I have too many reports. I wanted to use a list box and have a command button bring up the preview of the report I want. I'm having trouble setting it up. Do I need to create a macro for this or is there a way of linking the list box with the reports on click with a command button?



    The reports are basically linked to queries that generate a list once I create the record on my main form. I just need some direction from that point on what to put on my form so I can avoid creating multiple command boxes.

  2. #2
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    I don't understand this. What is the listbox for? What's in it? filter criteria for these reports? report names? That would be helpful here.

  3. #3
    kbandong1 is offline Novice
    Windows Vista Access 2002
    Join Date
    Mar 2011
    Posts
    2
    I've attached my database along with this reply. I accidentally omitted the list box I wanted to use. Basically, this db is for my dvd collection and I wanted a way to link the reports to my main from to open up a print preview of a report I choose. The reports are broken down to genres (ie: Action, Comedy, etc.) Those reports are linked to queries with filter criteria separating the genres and creating a list of the certain genre that would fulfill the criteria (ie: if the report I wanted was from the "Action" genre, my query "qryAction" would be implemented and the criteria of that query is "Action" from my main table named tblMain).

    Simply put, I want to avoid using multiple command buttons that will show me a preview of 1 of the 18 reports and use a list box that has all the genres and use one command button to show me a preview off that list box of genres.

    I have not created all the reports but some just to clarify on what will show up when it's fully completed. I have some reports on the main table (tblMain) just as a test to see if my queries are working properly.

  4. #4
    Access_Blaster is offline User
    Windows XP Access 2010 32bit
    Join Date
    May 2010
    Posts
    339
    Bob Larson has an example of a listbox previewing and printing reports here. Look near the botton of the page.

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 multiple reports with one command
    By AKQTS in forum Reports
    Replies: 2
    Last Post: 09-24-2010, 09:32 AM
  3. Printing reports and cycling through records
    By dabman in forum Programming
    Replies: 4
    Last Post: 12-15-2009, 11:45 PM
  4. How to automate printing and saving reports
    By lilynet in forum Programming
    Replies: 0
    Last Post: 02-10-2009, 01:33 PM
  5. Printing Reports....
    By Danny Christie in forum Reports
    Replies: 1
    Last Post: 12-06-2006, 05:51 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