473,795 Members | 2,954 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

automated email

tk
Hello,
At the moment im building a database for a driving school, I have a
customer field, with email address as an attribute. I dont know much
about macros in access but once the customer has booked a lesson i
want a automated email to be sent to the customer 3 days or a few days
before their driving lesson, stating the driving instructor, booking
ID time and date etc.
I have 5 tables apart from customer: Employee, Car, Booking, Package
and Session therefore the email will have to take out data from the
session table for the following data booking ID, drving instructor ID,
session date and time
can someone please help figure out or tell me the code?
Thank you!

Apr 2 '07 #1
2 5566
You might want to just use Task Manager 2007 from www.orbisoft.com. It
has email reminders in and I think it can handle all that other stuff
too. It's made with MSAccess and it's a free download for single
users. The email messages it sends can be customized and sent to a
variety of people.

In the user-defined field section of the email reminder help topic,
you'll see you can enter a customer's email for an email reminder:

Recipient
---------------

Select the person(s) to receive the email reminder for the selected
Rule. Enter new Recipients in the new record row (indicated by the
asterisk * indicator).

There are four different types of Recipients that can be entered here:

Raw email addresses
-------------------------------

Enter the email address of the Recipient, e.g.
an*******@anydo main.com.

Address book names
--------------------------------

Enter names of people that exist in the relevant email program's
address book, e.g. Frank Brown.

Dynamic team members
------------------------------------

Enclosed in { } brackets, these values change for each task. For
example, {Allocated To} gives the email address for the team member
each task is allocated to.

User-defined field values
-----------------------------------

The value of a user-defined field for a task will be used here as an
email address. For example, you may decide to have

1. A user-defined task field named Customer Email.
2. A Quick Entry Template based on a Task Name that stores the email
address of a customer (if the Task Name is used as the customer name).
3. A user-defined field named Status that has the lookup values
Started, Awaiting Info, Reviewed, and Sent used as drop-down list
items.
4. An email reminder rule called Status: Started, with the Where
property set to [Status]='Started', and similar Rules copied for the
other Status values.

Using points 1 To 4 above, a customer would be emailed every time the
status of their task/job changes.

Tip: Another way of accounting for task status changes is to have a
Rule with the Where property set to [LastUpdated]=Date().

--------------

In your case the Criteria property would be [Deadline Date]<=Date()+3

In Task Manager 2007 you can have user-defined fields with drop-down
values to store things like "Car" and "Place". See
http://www.orbisoft.com/kb/taskmanager/2007/q/1120.htm.

You can also keep group all driving "Session"s to a particular
customer. See:

Q: How do I have a main project with many sub-projects?
http://www.orbisoft.com/products/tas...m#QMainProject

Regards
Mark
On Apr 3, 4:30 am, "tk" <deviousdevi... @gmail.comwrote :
Hello,
At the moment im building a database for a driving school, I have a
customer field, withemailaddres s as an attribute. I dont know much
about macros in access but once the customer has booked a lesson i
want aautomatedemail to be sent to the customer 3 days or a few days
before their driving lesson, stating the driving instructor, booking
ID time and date etc.
I have 5 tables apart from customer: Employee, Car, Booking, Package
and Session therefore theemailwill have to take out data from the
session table for the following data booking ID, drving instructor ID,
session date and time
can someone please help figure out or tell me the code?
Thank you!

Apr 2 '07 #2
You can send an email by using SendObject:

Private Sub cmdEmail_Click( )
On Error GoTo Err_cmdEmail_Cl ick

Dim strDocName As String
Dim strEmail As String
Dim strMailSubject As String
Dim strMsg As String

strDocName = Me.lstRpt
strEmail = Me.txtSelected & vbNullString
strMailSubject = Me.txtMailSubje ct & vbNullString
strMsg = Me.txtMsg & vbNullString & vbCrLf & vbCrLf & "Your Name" & _
vbCrLf & "MailTo:yo***** **@nowhere.com"

DoCmd.SendObjec t objecttype:=acS endReport, _
ObjectName:=str DocName, outputformat:=a cFormatHTML, _
To:=strEmail, Subject:=strMai lSubject, MessageText:=st rMsg

Exit_cmdEmail_C lick:
Exit Sub

Err_cmdEmail_Cl ick:
MsgBox Err.Description
Resume Exit_cmdEmail_C lick

End Sub

Have a look at my sample database at:

http://www.datastrat.com/Download/Birthday2K.zip

for a sample of tickler code.
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com

"tk" <de************ @gmail.comwrote in message
news:11******** **************@ e65g2000hsc.goo glegroups.com.. .
Hello,
At the moment im building a database for a driving school, I have a
customer field, with email address as an attribute. I dont know much
about macros in access but once the customer has booked a lesson i
want a automated email to be sent to the customer 3 days or a few days
before their driving lesson, stating the driving instructor, booking
ID time and date etc.
I have 5 tables apart from customer: Employee, Car, Booking, Package
and Session therefore the email will have to take out data from the
session table for the following data booking ID, drving instructor ID,
session date and time
can someone please help figure out or tell me the code?
Thank you!

Apr 4 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
1576
by: Bengt Richter | last post by:
I find that threads sometimes mention PEPs that I wasn't aware of, or that an interesting one has been updated without my noticing. I should perhaps check the PEP site more regularly, but ISTM it shouldn't be that hard to implement an automated notification of PEP status changes by email. A cron job could just monitor the PEP source directory and watch for new files and last-mod changes, for starters. Maybe that would be sufficient,...
3
1590
by: SueHales | last post by:
Hi, folks. I'm fairly new to SQL Server, so forgive any stupidity inherent in this question. I work at a university and a certain faculty member would like to have her students create a simple auction web site as an exercise. As part of the assignment, she wants the auction site to be able to send an email to a bidder when they have been outbid. So she has asked me if this is possible, and how to do it. I've read a bit about sending...
4
4870
by: MLH | last post by:
I would like to configure OutLook Express so that it does not attempt to resend eMails in the Outbox folder whenever new sends are made From Access. The ISP's server rejects some eMail address immediately... Things like JohnDoe@aol. (an incomplete address) and sometimes NonExistent@NorthState.net (if NorthState is my ISP, its mail server knows IMMEDIATELY that NonExistent is NOT a valid mailbox in their system.
6
3059
by: brettev | last post by:
World, I work at a university where the professors have a system to input grades for assignments and calculate final grades, which is output to an excel file. they are then required to get on a different system and click radio buttons in a form to input final grades. i would like to automate this by doing some sort of automated form submission that grabs the information from the excel sheet and selects the correct radio button and then...
0
1352
by: tonydevlin | last post by:
I currently have the python code obj=sti.object creator = obj.Creator() history = sti.getHistory() wf_tool = context.portal_workflow mMsg = """ Content has been submitted for your review. The url was %s. The reason was %s.
7
1537
by: Jeff | last post by:
Hey ..NET 2.0 I'm on a project where I'm now about to develop the Data Access Layer. The database have 300 stored procedures. I'm about to go on a time consuming process of writing the .NET code which calls all these stored procedures. Each stored procedure should get it's own method in the Data Acess Layer..
1
2651
by: jadeverell | last post by:
Hi, I have a database that contains information of contracts / tenders and need to do the following task: * when a contract reaches its expiry date, i want to send an automated email to notify the Account manager. I have a query/form that displays all the expired contracts but wanted to add some 'automation' into it. Any advice would be much appreciated.
1
1572
by: jadeverell | last post by:
Hi, I have a database that contains a list of contracts including the dates they are due to expire and i was wondering if Access can be set up to send an automated email to an email address that contains a report of Contracts that are due to expire. I know how to set up the email function and do it manually, but is there a way for access to send the email automatically, even if a user is not logged into the database. I know this can be...
12
1756
by: mr_marcin | last post by:
Hi Does anybody have some idea how to input some text into inputbox on one page, than press some button on that page, that will load another page, and finally read the responde? Suppose I want to write a price comparision engine, where I would like to parse shops website for price each time user wants. I have found similar feature in Symfony framework, called sfBrowser (or sfTestBrowser). These are made for automated functional...
0
9673
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9522
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10003
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7544
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6784
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5566
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4114
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2922
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.