Results 1 to 7 of 7
  1. #1
    tcheck is offline Competent Performer
    Windows 7 Access 2007
    Join Date
    Nov 2010
    Posts
    131

    Linking PDF files to emails.


    I have a client that has several users that need to send out multiple reports that are stored on a shared server drive. These PDF's are logged into a SQL database and the location of where they are stored each day and kept for several years. Is there a way to select several of these reports and attach them to an email that they can send off easily using Access 2010 or 2007?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,625
    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
    tcheck is offline Competent Performer
    Windows 7 Access 2007
    Join Date
    Nov 2010
    Posts
    131
    I already send XLS files created in Access via email with out a problem. This would include going selecting files that have been already created and adding them to an email. Hard to explain but I thought i would give it a shot.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,625
    What is your specific issue? How to send multiple attachments? How to get the file path reference from database? Maybe these will give some guidance

    http://www.blueclaw-db.com/access_em...nd_outlook.htm
    http://bytes.com/topic/access/answer...le-attachments
    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.

  5. #5
    AcsDb Guest
    Windows 7 64bit Access 2010 32bit
    Private Sub ...()

    ...
    MyPath = ...
    MyFilename = ...
    Dim OutApp As Object
    Dim OutMail As Object
    Set OutApp = CreateObject("Outlook.Application")
    OutApp.Session.Logon

    Dim strBody As String
    strBody = "... html tags are fine ..."

    Set OutMail = OutApp.CreateItem(0)

    OutMail.To = EmailList
    OutMail.Attachments.Add MyPath & MyFilename
    OutMail.CC = "...."
    OutMail.Subject = "...."
    OutMail.HTMLBody = strBody


    OutMail.Display
    Set OutMail = Nothing
    ....
    End Sub

  6. #6
    tcheck is offline Competent Performer
    Windows 7 Access 2007
    Join Date
    Nov 2010
    Posts
    131
    THis is what I was looking for, to send an email with atttachments. I used the following site information just currious if anyone knows what the seperator is if I want to send several attachements;

    http://www.blueclaw-db.com/download/...il_example.htm

    Thanks for your help.

  7. #7
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,625
    There isn't one. Repeat the .Add for each file to attach. Review this http://www.pcreview.co.uk/forums/ema...-t3496042.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.

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

Similar Threads

  1. Replies: 2
    Last Post: 02-25-2012, 06:29 PM
  2. Linking to csv files
    By alc in forum Queries
    Replies: 1
    Last Post: 02-07-2012, 07:43 PM
  3. Replies: 0
    Last Post: 03-04-2011, 10:28 AM
  4. Replies: 1
    Last Post: 02-21-2011, 09:55 PM
  5. Linking up two files
    By heidiffg in forum Access
    Replies: 0
    Last Post: 02-14-2011, 09:39 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