Results 1 to 2 of 2
  1. #1
    Marianna_Air is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2012
    Posts
    56

    Email


    Auto populate “To” email field with email that’s associated with that reports recorded vendor
    Code:
    Private Sub Email_Click()
    On Error GoTo Err_Email_Click
        Me.Refresh
        
        If IsNull(Me![RequestforQuotesID]) Then
            MsgBox "Enter Request for Quotes information before previewing."
        Else
            DoCmd.SendObject acSendReport, "RequestForQuotes_Converted", "PDFFormat(*.pdf)", "", "", "", "Request for Quote", "Vendor,                                                                                                                                                                                                                                                                                                                                                                                             We are looking for vendors that have the ability to accomplish the attached request. Please review and respond as soon as possible with a cost and estimated completion date. Please note: In order to view the attached detail drawings you may need to download Lucent Viewer Enable. This is a free trusted program that can be downloaded at this link http://www.ec-edi.com/download123/download.htm Thank you for your time, Marianna Airmotive" 'Send out the E-mail
        End If
          
    Exit_Email_Click:
        Exit Sub
    Err_Email_Click:
        If Err <> 2501 And Err <> 2465 Then
            MsgBox Err.Description
        End If
        Resume Exit_Email_Click
    End Sub

  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,652
    If it's on the form:

    Me.EmailAddressField

    in the appropriate position. If not, use a DLookup() or recordset to look it up.
    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. Email report as body of email (RTF)
    By TheDeceived in forum Programming
    Replies: 4
    Last Post: 07-23-2012, 06:39 AM
  2. Email report as body of email
    By chrish20202 in forum Programming
    Replies: 6
    Last Post: 01-15-2012, 07:23 PM
  3. Replies: 4
    Last Post: 04-13-2011, 10:11 AM
  4. send email to email addresses in database?
    By cnstarz in forum Access
    Replies: 5
    Last Post: 03-02-2011, 09:46 PM
  5. Email from report to Email body
    By Ehmke66 in forum Programming
    Replies: 4
    Last Post: 01-03-2011, 01:06 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