Results 1 to 2 of 2
  1. #1
    Edain is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2012
    Posts
    1

    Smile Email report automatically with address that is incl in report

    I am a beginner user of MS access. Basically I am sending out questionnaires with existing datato vendors and they should confirm/amend and send back to me. I was hoping to use the query function and 'collect and update data via email' but no joy as I get an error message "you cannot collect data for action queries, SQL-specific queries, and parameter queries by using email messages" - presumably as I have used the vendor identifier as a parameter criteria....


    Anyway I now have decided to link the query to a report, then email from here - the email address data is captured in the report under the vendor information i.e it has it's own text box. Can I write something taht will take the email address and send direct from access via MS outlook. Also I generic text for each questionnaire is it better to add into the report or in the email body...can I write that in as well or am I becoming to complex (for my beginners brain!)?

    Tvm in advance


  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,969
    You can use SendObject method for the email but is very limited in how you can structure email. The SendObject will convert the report to designated format (such as pdf) and send as attachment to email. Alternative code does not use SendObject. Examples of both in http://msdn.microsoft.com/en-us/libr.../ff197046.aspx

    The alternative would require actually saving the report as a pdf file then attaching pdf file to email. Can use OutputTo method.
    Review
    http://social.msdn.microsoft.com/For...5-2984825a60be
    https://www.accessforums.net/import-...ook-18221.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. Emailing report to address held in field
    By ham355 in forum Reports
    Replies: 4
    Last Post: 02-21-2012, 01:07 PM
  2. Replies: 6
    Last Post: 12-12-2011, 09:57 PM
  3. Replies: 4
    Last Post: 04-13-2011, 10:11 AM
  4. Automatically email report
    By Lockrin in forum Access
    Replies: 6
    Last Post: 01-18-2010, 12:35 PM
  5. Replies: 1
    Last Post: 05-01-2009, 07:33 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