Results 1 to 4 of 4
  1. #1
    Christopher is offline Novice
    Windows XP Access 2007
    Join Date
    Apr 2010
    Location
    Huntsville, Al
    Posts
    10

    Automating Reports

    I have 6 reports I want to run monthly, I have already set up the reports. I want to output all to different .pdf files inside one unique folder.


    Is this possible? I know I can use the outputto function but it prompts me to change the name, but I want/some code to do this. Also, the reports prompt for input, can I set a value for this in the macro or code to fill in all prompts?

  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
    You can do this type of thing:

    DoCmd.OutputTo acOutputReport, "rptBooking", acFormatPDF, "C:\" & Me.ResNum & "_" & Me.ConLastName & ".pdf"
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    Christopher is offline Novice
    Windows XP Access 2007
    Join Date
    Apr 2010
    Location
    Huntsville, Al
    Posts
    10
    pbaldy,
    I don't know what that is supposed to mean. Is that SQL code? is that something I am supposed to put into specific fields in the macro builder?

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    That is VBA code; I don't use macros, so I'm not sure you can do the same thing in them. Personally I'd use VBA, if you're willing to jump in.
    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. Reports ??? Help!
    By Vikki in forum Access
    Replies: 3
    Last Post: 02-08-2010, 09:52 AM
  2. Automating changing Report Print Set-up to Landscape
    By Neil Bingham in forum Reports
    Replies: 0
    Last Post: 12-07-2009, 06:24 AM
  3. Help with reports
    By geetha001 in forum Access
    Replies: 0
    Last Post: 01-21-2009, 08:45 AM
  4. E-mail Reports
    By Mike Cooper in forum Reports
    Replies: 2
    Last Post: 08-04-2008, 12:58 AM
  5. Need Help on reports
    By MeehPhill in forum Reports
    Replies: 3
    Last Post: 07-31-2006, 11:51 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