Myprogram is an Order Processing Program orking on a network as a multiuserprogram. In this program the user enters the specifications of the Order and after it is being approved, the program send an email alert to the departments heads working on tthe network, and in this email the program will send the Order printout as an attached file using the sendobject command as follows:
DoCmd.SendObject acSendReport, stDocName, acFormatSNP, EMailTo, EMailCC, EMailBCC, EMailSubject, EMailMsg, True
Such that stDocName is a string variable containing the report name in the Access program
The problem is that this command don't work more than once in the session, such that if the program sends another email containing Access report in it than the email will be sent but witout the report and without any error.
is there any body has a solution for this problem JaZakumAllahKhairan.
Thanks
Note: I'd like to write to you in arabic it's may be better in a certain limits but in my duty place we don't use the arabicand installing the arabic on my machine could cause problems for some applications, so excuse me.