+ Reply to Thread
Results 1 to 8 of 8

Launching duplicate emails in Access

  1. #1
    Registered User
    Join Date
    09-22-2015
    Location
    Eau Claire, WI
    MS-Off Ver
    2010
    Posts
    65

    Launching duplicate emails in Access

    Hey guys and girls,

    My Access email macro is looping through and launching duplicate email windows until I tell manually stop it. Can't figure out why it is looping, any help would be appreciated. Database that has several forms that all link to a navigation from.

    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor Neil_'s Avatar
    Join Date
    04-19-2013
    Location
    Yorkshire
    MS-Off Ver
    Office 365 Enterprise E3 2013 / 2016
    Posts
    479

    Re: Launching duplicate emails in Access

    This is a guess, but I claim my cigar right now. This sub is fired by a button. The button has focus because you clicked it.
    This line presses the button again (and again, ad infinitum).
    Please Login or Register  to view this content.
    Avoid Sendkeys if you can. Its like typing with the screen off.
    Frob first, tweak later

  3. #3
    Registered User
    Join Date
    09-22-2015
    Location
    Eau Claire, WI
    MS-Off Ver
    2010
    Posts
    65

    Re: Launching duplicate emails in Access

    That appears to have fixed the issue. Any recommendations on how to may a gap between the body of the email and the signature since Enter will not work?

  4. #4
    Valued Forum Contributor Neil_'s Avatar
    Join Date
    04-19-2013
    Location
    Yorkshire
    MS-Off Ver
    Office 365 Enterprise E3 2013 / 2016
    Posts
    479

    Re: Launching duplicate emails in Access

    Tested

    Please Login or Register  to view this content.
    Last edited by Neil_; 10-12-2016 at 04:51 PM. Reason: Tested and working

  5. #5
    Valued Forum Contributor Neil_'s Avatar
    Join Date
    04-19-2013
    Location
    Yorkshire
    MS-Off Ver
    Office 365 Enterprise E3 2013 / 2016
    Posts
    479

    Re: Launching duplicate emails in Access

    Oh, and if there is any special formatting in the signature use .HTMLBody instead of .Body

  6. #6
    Registered User
    Join Date
    09-22-2015
    Location
    Eau Claire, WI
    MS-Off Ver
    2010
    Posts
    65

    Re: Launching duplicate emails in Access

    Thank you for helping me. When using this code even after switching to HTML Body it does not keep the special formats and strings the signature together with the body. Need to find a way to have the body inserted, then create a space and insert signature. Any ideas?

  7. #7
    Valued Forum Contributor Neil_'s Avatar
    Join Date
    04-19-2013
    Location
    Yorkshire
    MS-Off Ver
    Office 365 Enterprise E3 2013 / 2016
    Posts
    479

    Re: Launching duplicate emails in Access

    Worked fine for me. You need to use HTML "<br>" to insert a break as you are pasting into HTML. did you replace both .body in the code?
    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    09-22-2015
    Location
    Eau Claire, WI
    MS-Off Ver
    2010
    Posts
    65

    Re: Launching duplicate emails in Access

    Ah, Missed that part. Thank you so much, works perfectly!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Excel vba to auto-send customer emails (duplicate emails issue)
    By nadz84 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-29-2015, 10:08 AM
  2. [SOLVED] How to remove duplicate emails from a column?
    By todorko in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-29-2013, 10:20 AM
  3. Access VBA or SQL to find and delete duplicate records in access table
    By ewong in forum Access Programming / VBA / Macros
    Replies: 10
    Last Post: 09-14-2012, 06:55 PM
  4. FInd the duplicate emails
    By ramithraov in forum Excel General
    Replies: 1
    Last Post: 03-17-2011, 03:31 AM
  5. Access sending emails
    By vamshi57 in forum Access Tables & Databases
    Replies: 1
    Last Post: 02-02-2010, 06:40 PM
  6. How do I remove duplicate emails from a list?
    By fastrack1 in forum Excel General
    Replies: 2
    Last Post: 01-21-2010, 10:31 PM
  7. [SOLVED] Launching Excel causes floppy drive access
    By Jules in forum Excel General
    Replies: 3
    Last Post: 03-01-2006, 10:40 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1