Results 1 to 5 of 5
  1. #1
    windwardmi's Avatar
    windwardmi is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Apr 2010
    Location
    NewJersey
    Posts
    46

    Due date email

    One entry on our form for instruments requests a due date for calibration.



    What type of code is involved for sending an email when that due date occurs or for 10 days prior and 10 days after due date.

    I am not familiar with VB code writing.

    Obviously the Db should be open to have this happen. So this I assume should be triggered on open.

    I went to MS support Article 161088 and this doen not seem to help

  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
    Personally I would probably create an mdb that performed this process when it opened, then closed itself. Then I'd call that mdb from Windows Scheduled Tasks on the desired schedule. If you do it on open, it could happen more than once or not at all. You could create a query that returned the relevant items, create a report from that and use SendObject to send that report.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    windwardmi's Avatar
    windwardmi is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Apr 2010
    Location
    NewJersey
    Posts
    46
    Ok, I can use Windows Scheduled Tasks to open up the program daily or on bootup.

    Still if not triggered by Programto do the task the operator will not do it.

    Can I have the program start and if a due date is due display a message to carry out task to send email? Can this task be automated on closing opening message to send email and cancel task.

    Sounds complicated and code beyond my knowledge.

    What do you think? Should we go further?

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Virtually anything is possible; you need to land on exactly what you want to do and where/when.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    windwardmi's Avatar
    windwardmi is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Apr 2010
    Location
    NewJersey
    Posts
    46
    I will go further with the application and get back to this issue later. Thanks for the help.

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

Similar Threads

  1. Replies: 1
    Last Post: 07-07-2010, 04:22 PM
  2. set date field on form to date variable
    By laavista in forum Access
    Replies: 3
    Last Post: 06-28-2010, 03:03 AM
  3. Replies: 9
    Last Post: 03-19-2010, 10:37 AM
  4. Replies: 2
    Last Post: 07-31-2009, 06:56 AM
  5. Replies: 1
    Last Post: 12-09-2005, 10:29 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