Results 1 to 2 of 2
  1. #1
    P.Malius is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2012
    Posts
    10

    Finding email addresses using VBA

    Hello,



    I have a simple database that is used to track documents, when a new document is entered I have a bit of code that I use to send an email out to specific recipicants (depending on the document). As it stands I have a fake email in the address section, I would like to have the code pick up the emails that i have entered into the form to save me re-typing all the time. Is this possible?

    Below is my code:

    Code:
    Private Sub Command48_Click()
    DoCmd.SendObject _
        , _
        , _
        , _
        "John.smith@no-where.com" _
        , _
        , _
        , _
        "Specification has been issued for review", _
        "A Specification has been issued and is awaiting your review. Please complete this reviw with 14 DAYS. Record number: " & Forms!frmSpecification.ID & ".", , _
        True
        
        
    
    End Sub
    Any help would be greatfully appreciated.

  2. #2
    P.Malius is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2012
    Posts
    10
    It appears I have solved my own problem. The 'Forms!frmSpecification.**' bit of code will work in the address section however I have a dash in my fields name containing the addresses which was causing it not to work.

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

Similar Threads

  1. Replies: 2
    Last Post: 07-29-2011, 12:33 PM
  2. Replies: 11
    Last Post: 05-20-2011, 01:56 PM
  3. send email to email addresses in database?
    By cnstarz in forum Access
    Replies: 5
    Last Post: 03-02-2011, 09:46 PM
  4. Exporting Outlook email addresses
    By noidea in forum Import/Export Data
    Replies: 0
    Last Post: 08-01-2009, 01:48 PM
  5. Combining two Email Addresses
    By Frodo in forum Access
    Replies: 0
    Last Post: 09-16-2007, 07:07 AM

Tags for this Thread

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