Results 1 to 2 of 2
  1. #1
    MFriend is offline Novice
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Jun 2010
    Posts
    22

    Macro for Email Wizard Using the Access Runtime?

    Hi Folks:



    I have developed a table/form for tracking folks I want to email.

    Is it possible to create a runtime that will allow me to access the "Create Email" wizard which is found under the External Data tab?

    I can do it with no problem using the full version of access 2010. When I export the runtime, it of course does not have the menu available. I tried using one of the built in Macro's attached to a button, but it did not work.

    Any ideas?

    Thanks,
    Matt

    P.S. I just need the emails from one of the fields in my query to be added to Outlook in the BC or CC field.

  2. #2
    Join Date
    Jun 2010
    Location
    Belgium
    Posts
    1,044
    Hi,

    here you have some simple code to create an e-mail you can call from the onclick event of your button:

    Public Function CreateMailMessage(strTo As String, strSubject As String, strBody As String, strFile As String) As Boolean
    On Error GoTo Err_CreateMailMessage

    Dim appOutlook As New Outlook.Application
    Dim msg As Outlook.MailItem


    Set msg = appOutlook.CreateItem(olMailItem)

    msg.To = strTo
    msg.Subject = strSubject
    msg.Body = strBody
    msg.Attachments.Add (strFile)
    msg.Display

    CreateMailMessage = True

    Exit_CreateMailMessage:
    Exit Function

    Err_CreateMailMessage:
    'MsgBox Err.Number & ": " & Err.Description
    CreateMailMessage = False
    Resume Exit_CreateMailMessage

    End Function

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

Similar Threads

  1. can not access over network using runtime
    By Kris Jones in forum Access
    Replies: 1
    Last Post: 03-03-2010, 09:56 PM
  2. Replies: 3
    Last Post: 10-16-2009, 07:54 AM
  3. How wizard in access been made
    By miziri in forum Programming
    Replies: 1
    Last Post: 08-20-2009, 03:14 AM
  4. Access runtime on CD?
    By Orabidoo in forum Access
    Replies: 1
    Last Post: 08-19-2009, 01:51 AM
  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