Results 1 to 4 of 4
  1. #1
    mak101 is offline Novice
    Windows 7 Access 2007
    Join Date
    Nov 2010
    Posts
    3

    how to copy query results to outlook public folder

    I need to send consolidated data in spreadsheet from access database to group of people everyday. What I am thinking is, instead of sending an attachment everyday, copy spreadsheet to public folder and send them an email announcing new data on the public folder. And I don't need old copy of spreadsheet so just want to overwrite the old one.

    Is this doable? Can someone please give me sample code to accomplish it.

    Thanks.

  2. #2
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    there are plenty of email examples on the web of how to email using vba, but copying a file is about one line of code, regardless of the way you do it. you can copy it using DOS, or using a vba function.

    to copy using DOS, you can use the 'xcopy' command:
    Code:
    Shell Environ("COMSPEC") & " /C xcopy" & """" & drive:\oldfilepath drive:\newfilepath & """" & ", 1"

  3. #3
    mak101 is offline Novice
    Windows 7 Access 2007
    Join Date
    Nov 2010
    Posts
    3
    This is not a windows folder, I am talking about copying file to outlook public folder on exchange server.

  4. #4
    mak101 is offline Novice
    Windows 7 Access 2007
    Join Date
    Nov 2010
    Posts
    3
    anyone please?

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

Similar Threads

  1. How to copy a file from one folder to another in vba
    By pkstormy in forum Code Repository
    Replies: 2
    Last Post: 09-20-2012, 05:32 PM
  2. Replies: 2
    Last Post: 09-23-2010, 02:50 PM
  3. Enter a folder name and open that folder
    By pkstormy in forum Code Repository
    Replies: 0
    Last Post: 09-05-2010, 04:39 PM
  4. Copy file to folder
    By tpcervelo in forum Programming
    Replies: 11
    Last Post: 08-31-2010, 10:01 AM
  5. Export Access reports/query results to Outlook Calendar/Task
    By kfinpgh in forum Import/Export Data
    Replies: 0
    Last Post: 02-22-2007, 01:09 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