Results 1 to 8 of 8
  1. #1
    wsm_al is offline Novice
    Windows XP Access 2007
    Join Date
    Oct 2011
    Posts
    6

    Auto email a pdf report daily from ACCESS

    Hi,
    I am working on Access2007. I designed a report that I need to email every night automatically to my client. The report resides in the Access database. I currently use a macro to auto email this report for me but it still requires me to double click the macro to make it run. I actually want the report to be email at night without having me running the macro manually. Is there any way to make this happen?
    Thanks a lot in advance,

  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
    Personally I would create a db that performs your task when it opened and then quits (a macro named autoexec will run when the db opens). Then I'd run that db from Windows Scheduled Tasks.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    wsm_al is offline Novice
    Windows XP Access 2007
    Join Date
    Oct 2011
    Posts
    6
    Thank you pbaldy,
    I have thought of this solution, but there is two issues with it. The DB is frequently opened so the report will be sent every time I open the DB. The second issue is there is some issues with windows scheduled task so I can't use it in the corporate for some reasons I don't know about. I am wondering if there is another way to do it.
    Thanks again,

  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
    Well, by "create a db" I meant I'd create a db separate from the production db. This task would be all it did, so it would only be sent once, when called from Scheduled Tasks.

    In any case, if you can't use Scheduled Tasks, you can use the timer event of a form that remains open and have it trigger your macro at that appropriate time. That of course requires the db remain open, and if it's open on more than one PC, it could be sent more than once. That's why I prefer the other method. I also prefer to not have the timer event running all the time if I don't absolutely need it.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    wsm_al is offline Novice
    Windows XP Access 2007
    Join Date
    Oct 2011
    Posts
    6
    Thanks pbaldy for your quick reply! I did the scheduled task and it works fine now. This is a better option. However, I still get a security warning message from outlook saying " a program is trying to send an application on your behalf.... do you want to allow....) and I have to click on ALLOW. this is not solving the problem either because it still requires a manuall action to make the report to be sent out. Thoughts??

    Thanks for your time,

  6. #6
    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's an Outlook issue (and I thought you couldn't use Scheduled Tasks). I typically use CDO to email things out when I'm doing things like you are, as it gets around the warnings. Other options include a free utility called ClickYes and Outlook Redemption. Google should have more info on all 3.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  7. #7
    wsm_al is offline Novice
    Windows XP Access 2007
    Join Date
    Oct 2011
    Posts
    6
    Thanks again! I got your point.

  8. #8
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Happy to help!
    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. Replies: 9
    Last Post: 10-13-2011, 01:30 PM
  2. Auto Run Report then Auto Email
    By jo15765 in forum Reports
    Replies: 1
    Last Post: 10-05-2011, 10:57 AM
  3. Daily Sales Report
    By bayswatergirl in forum Reports
    Replies: 1
    Last Post: 06-02-2011, 12:27 PM
  4. Replies: 4
    Last Post: 04-13-2011, 10:11 AM
  5. Replies: 1
    Last Post: 03-02-2010, 10:51 AM

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