Results 1 to 4 of 4
  1. #1
    lilygtg is offline Novice
    Windows Vista Access 2010 32bit
    Join Date
    Aug 2011
    Posts
    3

    Question Help with Access Needed

    I guess this is a two part problem, I haven't used access in a long time and cannot remember anything.



    I have a training database and what to be able to automatically e-mail people if they are within 90 days of their expiration date.

    Someone told me to use DateDiff but am not getting anything back from the query. Here are some of the examples someone told me to use and I am not getting anything:

    Datediff("d",Date(),[expiration date])=>83,<90
    datediff("d),Now(),[expiration date])=(between 83 and 90)

    (I don't want to continue e-mailing the same people every week so I need to be able to have the people e-mailed the week before drop off the query)

    Lastly what do I need to do to automatically e-mail both the person and the supervisor? (Both e-mail addresses are stored in the database).

    Thanks so much, any help would be greatly appreciated

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    What I would do is build a query that has a list of all people that are due to expire. In your query you'd have a field that was

    DaysUntilDue: datediff("d", date(), [Expiration Date])

    in the criteria of that calculated field have

    between 83 and 90

    that should limit it to the people that are between 83 and 90 days of being due

    From there you can build your procedure to send out the email and as long as you are storing the different emails then yes, you can send an email to both the person and their supervisor, you can even just BCC (blind carbon copy) their supervisor.

  3. #3
    lilygtg is offline Novice
    Windows Vista Access 2010 32bit
    Join Date
    Aug 2011
    Posts
    3
    Thank you so much the query worked perfectly! Could you please tell me where I start with building a procedure for the e-mail? Thanks again.

  4. #4
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    What's the structure of your tables?

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

Similar Threads

  1. Help Needed Newbie at access
    By LebanonJames in forum Access
    Replies: 0
    Last Post: 04-18-2011, 05:23 AM
  2. Access help needed.....
    By tharindu12 in forum Access
    Replies: 1
    Last Post: 03-01-2011, 05:50 AM
  3. Example Needed for Access VB
    By boy3696 in forum Programming
    Replies: 4
    Last Post: 09-21-2010, 11:23 PM
  4. Ms Access Programers Needed
    By Dinjee in forum Access
    Replies: 0
    Last Post: 01-29-2010, 07:08 PM
  5. Replies: 4
    Last Post: 08-30-2009, 12:31 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