Results 1 to 4 of 4
  1. #1
    Robert2150 is offline Competent Performer
    Windows XP Access 2010 32bit
    Join Date
    Sep 2013
    Location
    Sparks, Nv
    Posts
    102

    Sending a Report by Email

    I have program that produces a report for each of the Properties that I have in the Database.



    I have developed a Print Report Button that sends the report to my printer for the specific Property that is open in my main form. (Based on the Property ID number of the Property open in the Main form.)

    I would like to be able to Email that report (for the Specific Property that is open in the form).

    However, when I formed a button to Email the report, the program attaches the report data for ALL of the properties.

    How do I limit the Email attachment to just the property that is open in my main form?

    Thank You.

  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,521
    Greetings from next door.

    i assume you're using this method when printing:

    http://www.baldyweb.com/wherecondition.htm

    if so, your simplest solution is probably to use the same method but open in preview mode, then use SendObject to send, then close the report. Since the report is open, SendObject should send the filtered report.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    Robert2150 is offline Competent Performer
    Windows XP Access 2010 32bit
    Join Date
    Sep 2013
    Location
    Sparks, Nv
    Posts
    102
    Paul,

    It works great, thank you very much for your help

    Bob W

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Happy to help!
    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. Sending A Report Via Email
    By Ka-Tet in forum Reports
    Replies: 0
    Last Post: 09-02-2013, 09:18 AM
  2. Combining 'sending mail' with 'sending a report'.
    By Mattbro in forum Programming
    Replies: 2
    Last Post: 11-25-2012, 07:42 AM
  3. Sending Report from Access as attachment in Email
    By taimysho0 in forum Programming
    Replies: 16
    Last Post: 02-09-2012, 12:07 PM
  4. Replies: 2
    Last Post: 08-17-2010, 10:54 AM
  5. Email sending
    By Steven.Allman in forum Access
    Replies: 25
    Last Post: 06-21-2010, 09:37 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