May 21, 2008 #1 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.
May 21, 2008 #2 ProgramError Programmer Mar 2, 2005 1,027 GB 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! Upvote 0 Downvote
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!