Page 1 of 3 123 LastLast
Results 1 to 15 of 42
  1. #1
    joshynaresh is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Aug 2013
    Posts
    131

    auto email to client before 30 days of expiry of loan

    Dear Sir,

    I'm using access database. i want to code my database so that my database automatically send email notification to client and also to admin of loan expire information ( Expired date and Loan Limit which is already in my database).


    Can it is possible? plz help me and provide me also code for it.
    Thank You

  2. #2
    AlexHedley's Avatar
    AlexHedley is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Apr 2013
    Location
    England
    Posts
    180

    auto email to client before 30 days of expiry of loan

    Have you created a query to find records that meet the 30 day limit?

    What version of Access are you using?
    2003/2007/2010/...

    What email client are you using?
    Windows Mail
    Outlook 2003/2007/2010/...

    Will the computer you use always be on?

    What is your programming experience?
    Do you know VBA?

  3. #3
    joshynaresh is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Aug 2013
    Posts
    131
    no i have no idea about it? i'm using access 2007 and ms outlook 2007. Computer be on Sunday to Friday.
    I don't no more about VBA. but i have little knowledge about it.

  4. #4
    Mahendra1000 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Sep 2013
    Posts
    101
    So the client should receive the mail before 30 days of expiry of loan....

    your system will be OFF on Saturday

    For those who needs to receive messages on Saturday.... when u are planning to send messages either Friday/Sunday?

  5. #5
    joshynaresh is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Aug 2013
    Posts
    131
    Yes, my client as well as admin also received mail before 30 days of expiry of loan, Yes, System will be OFF on Saturday,
    I have planned to send messages when it is reached to 30 remaining of expiry except Saturday.
    and I can create query if u guide me.

  6. #6
    AlexHedley's Avatar
    AlexHedley is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Apr 2013
    Location
    England
    Posts
    180

    auto email to client before 30 days of expiry of loan

    What have you tried to get the records you need?

  7. #7
    joshynaresh is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Aug 2013
    Posts
    131
    I don't understand. can you describe in detail?

  8. #8
    AlexHedley's Avatar
    AlexHedley is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Apr 2013
    Location
    England
    Posts
    180

    auto email to client before 30 days of expiry of loan

    You want to create a Query with Loan Limit 30 days before it expires?

    So have you thought about how you would write that Query?

    If you break it down into steps first.
    You need to get Loan Limit so

    "SELECT [Loan Limit] FROM table;"
    You will need to change the names to what is in your Table.

    Next you need to work on limiting the Date by 30. Have you an idea of what is needed as the Criteria?

  9. #9
    joshynaresh is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Aug 2013
    Posts
    131
    i have created one query that calculate remaining day of limit to expire. and than what i have to do?

  10. #10
    AlexHedley's Avatar
    AlexHedley is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Apr 2013
    Location
    England
    Posts
    180

    auto email to client before 30 days of expiry of loan

    Here's a Tip on how to send a Report as an email, you could amend this to your needs

    http://www.599cd.com/tips/access/130...?key=AlexForum

  11. #11
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    Programmatically sending emails is common topic in forum. A search should reveal many examples using various methods. Attempt code for your situation and when you encounter specific issue, post question.

    You probably want code to open a recordset of the query, cycle through the records, send email with SendObject method. Review

    http://msdn.microsoft.com/en-us/libr.../ff197046.aspx

    https://www.accessforums.net/program...ses-37200.html
    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.

  12. #12
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows XP Access 2003
    Join Date
    Aug 2013
    Posts
    7,862
    Quote Originally Posted by AlexHedley View Post
    Here's a Tip on how to send a Report as an email, you could amend this to your needs

    http://www.599cd.com/tips/access/130...?key=AlexForum
    I don't see how this link you provided is of any help, whatsoever.

  13. #13
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    The video demonstrates a very simple interface to email a report as a pdf attachment. It uses wizard to construct button and probably generates an embedded macro. OP is looking for something quite a bit more sophisticated.
    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.

  14. #14
    AlexHedley's Avatar
    AlexHedley is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Apr 2013
    Location
    England
    Posts
    180

    auto email to client before 30 days of expiry of loan

    I was started off with a simple example to help build the knowledge for the OP as previous posts haven't given the impression of a massive amount of knowledge and giving a chunk of vba maybe overwhelming.
    It's better to understand how the whole process works then botch together things found on the web as if there are errors how will the be fixed.

  15. #15
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    I agree, baby steps. That video and the other referenced links should give OP enough to begin learning process.
    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.

Page 1 of 3 123 LastLast
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 29
    Last Post: 12-17-2014, 08:46 PM
  2. Auto-Generated Email
    By jle0003 in forum Access
    Replies: 3
    Last Post: 08-20-2012, 01:33 PM
  3. Auto Run Report then Auto Email
    By jo15765 in forum Reports
    Replies: 1
    Last Post: 10-05-2011, 10:57 AM
  4. Replies: 1
    Last Post: 07-26-2011, 06:10 AM
  5. Auto email query
    By warrigal in forum Database Design
    Replies: 3
    Last Post: 03-23-2011, 07:09 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