Results 1 to 4 of 4
  1. #1
    Perfac's Avatar
    Perfac is offline Expert
    Windows 10 Access 2016
    Join Date
    May 2016
    Location
    Centurion Pretoria
    Posts
    618

    Printing many docs for a chosen period.


    I set up a form to print salary slips for a month. Table t01Salary keeps all data for all the years. q01Salary is a query with some added fields. f01Salary is the form which r01Salaryslip print the slip. I manage to do one at a time. I would like to choose a month and click one print command that print 20 salary slips if there is 20 slips needed to be printed. Thank you.

  2. #2
    aytee111 is offline Competent At Times
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    The month to choose will be a field on the form, maybe a combobox depending on your needs. Then when you open the report use a filter,
    such as "Month(SalaryDate)=" & Me!SelectMonth

  3. #3
    Perfac's Avatar
    Perfac is offline Expert
    Windows 10 Access 2016
    Join Date
    May 2016
    Location
    Centurion Pretoria
    Posts
    618
    Thanks my new friend. In my sales invoice table on the form there is a print button. Clicking on the print button in design mode in the Macro I have as WHERE CONDITION [InvSalID]=Forms![f02InvSales]!InvSalID which print the one. I am able to filter a query to find a certain months invoices in that query. I feel dumb but surely there is something small I miss. I want to click print once then it should print each document found in the query?

  4. #4
    aytee111 is offline Competent At Times
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    Use the filter instead of the where. Then make sure that the value used in the filter matches the query for your report - the name must be on the query (InvSalID) and the value must be present.

    Try it manually first - create a query based on the record source for your report, then enter the value on your form into the criteria of the query, make sure that it works as expected.

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

Similar Threads

  1. Replies: 7
    Last Post: 10-24-2015, 01:45 PM
  2. Replies: 1
    Last Post: 03-27-2014, 06:43 PM
  3. Google docs & email
    By Historypaul in forum Import/Export Data
    Replies: 0
    Last Post: 02-17-2013, 10:51 PM
  4. Generate docs from MS access
    By matspring in forum Access
    Replies: 2
    Last Post: 05-07-2011, 07:48 PM
  5. word docs.
    By laqsb in forum Access
    Replies: 1
    Last Post: 02-26-2010, 08:50 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