Results 1 to 3 of 3
  1. #1
    dchen is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Oct 2014
    Posts
    1

    How to schedule auto-exporting MS Access query to Excel and email it?


    I know Access can setup an Outlook Task to auto-export query to Excel, but it requires the Outlook to be always open on the user's computer.

    Is there an easy way to setup a schedule that can automatically export a query to Excel and this schedule will then auto-email the exported Excel file to an email address every Monday at 5AM for example?

    If this can only be done in VBA, any reference I may start with?

    Thanks.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    Maybe email with CDO (Collaboration Data Object). https://www.accessforums.net/access/...nding-216.html
    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
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    I have a form, with the users in a list
    the form has a timer, timerinterval = 5000 (5 seconds)
    it checks the target time, if it hits, then it launches :

    exports query to excel
    builds email via code, attches xl file, send.
    (tho it does seem to work better if Outlooks is open)

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

Similar Threads

  1. Replies: 1
    Last Post: 05-01-2014, 11:37 AM
  2. Replies: 10
    Last Post: 12-28-2012, 02:06 PM
  3. Replies: 1
    Last Post: 09-06-2012, 12:33 PM
  4. Auto email query
    By warrigal in forum Database Design
    Replies: 3
    Last Post: 03-23-2011, 07:09 PM
  5. Exporting from Access to Populate a Draft Email
    By swimmermx in forum Import/Export Data
    Replies: 5
    Last Post: 07-28-2010, 05:27 PM

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