Results 1 to 5 of 5
  1. #1
    wilhelmmt is offline Novice
    Windows XP Access 2000
    Join Date
    Apr 2010
    Posts
    2

    Auto Exec question

    Is there a way to have the database send a notification Email to a user without the database being open?



    The Email would be based on date parameters.

    If this is not possible, is there a way to automatically open a database everyday at a specified time?

  2. #2
    c_smithwick is offline Underpaid Programmer
    Windows 7 Access 2003
    Join Date
    Jan 2010
    Location
    Lakeside, CA
    Posts
    49
    No to the first question. You can automate opening the database, but you would need to use a separate program that would run in the background constantly - known as a TSR or "terminate and stay resident" program, or you can use the native Windows Task Scheduler to open your database at a prescribed time.

  3. #3
    wilhelmmt is offline Novice
    Windows XP Access 2000
    Join Date
    Apr 2010
    Posts
    2
    Does the TSR or the Windows Task Scheduler also have the ability to close the database at a specified time?

  4. #4
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    To elaborate a bit, it's not really the Task Scheduler that is opening and closing your database. What would end up happening is that you would write a .bat file that would open your db, and run whatever macro you want, at whatever time you want. It would then run another .bat file that closes the db at whatever time you want. I'm not sure how the Task Scheduler is connected to CMOS, if at all, so I don't know if it would have the capability to actually turn on your computer (turning off the computer isnt an issue). You may have to leave the computer on at all times

  5. #5
    c_smithwick is offline Underpaid Programmer
    Windows 7 Access 2003
    Join Date
    Jan 2010
    Location
    Lakeside, CA
    Posts
    49
    Some may, but why don't you just have your database exit after it performs whatever function you need it to do with an Application.Quit call at the end of your function?

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

Similar Threads

  1. how to xml auto importation
    By IMADOV10 in forum Access
    Replies: 0
    Last Post: 03-27-2010, 03:33 PM
  2. Auto-number
    By rkski in forum Programming
    Replies: 2
    Last Post: 01-13-2010, 02:04 AM
  3. Auto Suggest
    By Makem in forum Access
    Replies: 3
    Last Post: 11-16-2009, 08:53 AM
  4. Auto Numbering
    By rkruczk in forum Forms
    Replies: 0
    Last Post: 10-09-2006, 04:25 AM
  5. Need help with an auto number
    By Wrangler in forum Database Design
    Replies: 1
    Last Post: 02-10-2006, 03:21 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