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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using DoCmd.SendObject to send on a certain date

Status
Not open for further replies.

jase2006

Technical User
Nov 17, 2006
53
GB
Hi, I am currently using the function below to send a report through email. I would like to know if I can delay the sending date to the next day?
***************************************************
DoCmd.SendObject acSendReport, ReportName,acFormatRTF, Email1, Emal2, "Report1", Me.txtEmailNarr, False
****************************************************

Thanks



 
With SenObject, you would need to use the database to delay sending, that is, add a ToBeSent table with dates. Otherwise you will need to use Outlook automation, or such like.
 
ok thanks, So how I do I use the database to do this. some code sample would be great

Thanks again
 
Add the required details to a table. Examine the table either on opening the database, or periodically using a background form and timer. If a mail is found with the required date and time, notify the user and send the mail.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top