Results 1 to 2 of 2
  1. #1
    gor is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Posts
    13

    Email from

    Hi There,


    I have created a button that looks up a query then emails the from data as a pdf report to the person listed in the code below. Is it possible where the email is, to instead use the email address in one of the fields in the form itself. I can do this via VBA in word but do not know the code well enough in Access to perform the same job.

    Private Sub Command82_Click()
    DoCmd.SendObject acSendReport, "EmailQ", "PDF", jo@jabc.com.au, , , "From the Hive", "Please advise on the following", False
    End Sub

    thanks,
    Gordon

  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,640
    Sure

    DoCmd.SendObject acSendReport, "EmailQ", "PDF", Me.EmailAddress , , , "From the Hive", "Please advise on the following", False

    Where "EmailAddress" is the name of the control (like a textbox) with the email address in it.
    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. Export to PDF and Email multiple PDF's per email
    By greyoxide in forum Reports
    Replies: 1
    Last Post: 04-20-2012, 08:49 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