Results 1 to 3 of 3
  1. #1
    behnam is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2014
    Posts
    72

    How to check if email was sent when macro run.

    Hi all,

    I have a macro called SendMail which is a simple access macro using the EmailDatabaseObject (defined in access already). when the user runs it, it emails a pdf but dosent send it auomatically, the outlook screen pops up and the user then presses sent. Is there a way to check it sent was pressed or if the user closes the email screen without sending. Because if its not sent i dont want to run the rest of the code. Thanks.

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,926
    If it's not sent will generate error message. Perhaps use error handler code to capture that error number and terminate code execution.
    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.

  3. #3
    behnam is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2014
    Posts
    72
    thanks June7

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

Similar Threads

  1. Create Email form with check boxes
    By onmyway in forum Forms
    Replies: 6
    Last Post: 10-10-2013, 02:55 AM
  2. Replies: 8
    Last Post: 05-25-2012, 11:42 AM
  3. Noob Question macro to check checkbox
    By bradmitchell in forum Access
    Replies: 1
    Last Post: 05-13-2012, 10:08 PM
  4. Check boxes and email
    By Lxmanager in forum Access
    Replies: 1
    Last Post: 09-21-2010, 11:20 PM
  5. VBA check for email subject line
    By problem_addic in forum Access
    Replies: 4
    Last Post: 03-12-2010, 02:33 PM

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