Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automate Email based on date and time

Status
Not open for further replies.

Bledoset

Technical User
Jul 12, 2001
1
US
Looking for guidance on how to send an email from access to a specific user based on a due date.
 
Assuming you have a date due field in your table (dteDue), you could use


Private Sub cmdSendEmail_Click()
dim emailtitle, mainbodytext as string

if DteDue = Date() then
emailtitle = "This is the title"
mainbodytext = "Bla bla bla"

DoCmd.SendObject , , , , , , EmailTitle, MainBodyText, 0
else
msgbox "not yet due"
endif


Ian Mayor (UK)
Program Error
Your lack of planning is not my emergency!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top