Results 1 to 3 of 3
  1. #1
    cap.zadi is offline Competent Performer
    Windows 10 Access 2013 64bit
    Join Date
    May 2011
    Location
    KSA
    Posts
    481

    EmailDatabaseObject! Via Marco. Adding Field Value to Subject Line!

    Hi

    I have Send email button to send a report from the current record of form.



    Just interested to add some fields values along Text Line.

    Analysis Report [FiledValue]!

    Any Help please?

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,523
    Get values off the form,
    the form has fields, used as parameters for the report,

    sSubj = me.txtbox1
    sBody = "Hello, " & txtBox2

    docmd.SendObject acSendReport ,"rMyReport",acFormatPDF,sTo,,, sSubj, sBody

  3. #3
    cap.zadi is offline Competent Performer
    Windows 10 Access 2013 64bit
    Join Date
    May 2011
    Location
    KSA
    Posts
    481
    Hi, Thanks for the feedback.

    We cant add in the macro Subject line?

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

Similar Threads

  1. EmailDatabaseObject Automate TO Field
    By Tlo in forum Macros
    Replies: 3
    Last Post: 06-24-2016, 11:05 AM
  2. Add multiple iterations into subject line
    By Thompyt in forum Programming
    Replies: 20
    Last Post: 06-17-2016, 12:30 PM
  3. Missing stuff in Email Subject line
    By Thompyt in forum Programming
    Replies: 3
    Last Post: 04-13-2016, 02:26 PM
  4. Replies: 5
    Last Post: 11-01-2014, 05:18 PM
  5. VBA check for email subject line
    By problem_addic in forum Access
    Replies: 4
    Last Post: 03-12-2010, 02:33 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