Results 1 to 4 of 4
  1. #1
    Mike Ayres is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2013
    Posts
    2

    How can I run multiple reports from a list from a form/table field

    I have a report that runs from a query to select/collect data for filling out fields on the report. Lets call it an item number report.
    Every day I want to print from 25-60 of these reports and each of them is based upon a list of item numbers that change from day to day.
    So, I want to list the items to print for each day, have Access grab the data for each item, and print the list of reports.
    I have built a table/form to list the items to print for each day, but don't know how to cycle down the list and print my reports that run for each item.


    Presently I have to print each report one by one by requesting the item number in my query. I run the report, which runs the query (which requests the item number and associated data) and the report prints out. Then I repeat the process 25-60 times. If I could just run the whole batch of reports from a list each day it would be much simpler/quicker.
    I am not a programmer per se, so would like to accomplish this process with ready to use Access tools if possible....
    I have put together LOTS of reports, queries, and some macros over the past dozen years.
    Hope some one can lend me some assistance -
    THANKS!
    mike

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Sounds like will need VBA code to open a recordset of the desired item numbers, loop through the recordset to reference each item number as criteria for the report.

    What is the form structure - is it bound to a table? Can try the form RecordsetClone method, something like:

    With Me.RecordsetClone
    While Not .EOF
    DoCmd.OpenReport "reportname", , , "ItemNumber=" & .ItemNumber
    .MoveNext
    Wend
    End With
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    Mike Ayres is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2013
    Posts
    2
    Forgive me for not being able to relate to all your comments - as noted previously - I am NOT a programmer and have taught myself to use Access simply by taking a few basic one day courses from a local community college about 12 years ago and then working my way through Microsoft Access tutorial book at the 2000 year level. I do understand the basics and have used and put together many databases for company use over the years - but they are generally simplistic. The data I need to print is all contained in a couple of linked tables. I only wanted to use a form (rather than a table) as a mechanism to list the items I wanted to print and then to place a button there for a user to press that was attached to a macro to run the list of item reports after they had them all input. So the form is only a different visualization of a column from a simple table. Unfortunately I'm not familiar with the form RecordsetClone method - if this is not too difficult and is the easiest way to get to where I need to go - I'm willing to learn if you can direct me somewhere? Thank you.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    I don't know any specific reference sources for the RecordetClone method - will have to just google it.

    Build report that has ItemNumber as a field in its RecordSource. Then the WHERE CONDITION argument of OpenReport will filter report to the specific item.

    If the form has the desired item numbers listed then the basic code I show is relevant.

    How you filter the item numbers on the form to show only desired items is another issue.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 2
    Last Post: 10-24-2012, 02:53 PM
  2. Replies: 2
    Last Post: 04-05-2012, 08:39 PM
  3. Replies: 23
    Last Post: 12-06-2011, 09:18 AM
  4. export multiple reports based on table records
    By steve2000 in forum Reports
    Replies: 3
    Last Post: 10-03-2010, 03:44 PM
  5. list available reports on form
    By farls in forum Forms
    Replies: 3
    Last Post: 10-09-2009, 07:24 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