Results 1 to 2 of 2
  1. #1
    OpsO is offline Novice
    Windows XP Access 2007
    Join Date
    Jul 2010
    Posts
    12

    Stop SendObject Macro

    I have created a simple database that makes two tables from external data. Then compares the two tables and makes a table from the resulting differences. Then it sends the results in excel format to a designated email address for action by my employees. On some days, there are no differences between the two tables. Is there a way to stop the SendObject macro if there are no records present in the table?



    Thanks in advance for any help on this

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    If I understand correctly, you can test to see if the differences table has any records, and only send the email if it does. I'd do it with code, but you should be able to use a macro condition as well. A DCount() would be the simplest way to test the table.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 4
    Last Post: 08-17-2010, 02:57 PM
  2. Replies: 2
    Last Post: 11-29-2009, 12:00 PM
  3. How to stop....
    By swampdonkey in forum Forms
    Replies: 0
    Last Post: 12-04-2006, 01:56 PM
  4. How to stop sound playing
    By trirat in forum Programming
    Replies: 0
    Last Post: 03-12-2006, 06:23 AM
  5. auto start/stop time
    By j0ker21m in forum Reports
    Replies: 1
    Last Post: 12-10-2005, 08:42 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