raul
06-29-2017, 05:07 AM
Hi, first of all sorry for my bad english, I have a small database wich runs my warehouse, and i'm having problems with the cba code sending emails.
I have a form for orders, wich creates reports, bills, etc. With some code, i grab the email address and create a new email attaching the report, but i want to attach a templae for the body of the email.
the code i have is :
DoCmd.SendObject acReport, "FacturasCorreo", "PDFFormat(*.pdf)", "" & Me.Correo & "", "", "", "Confirmación envío", "", True, ""
This gives me no problem, but, the last quotation marks stands for templates, and when i paste the route, no matter how i paste it, it doesnt work, anyone know how to use a template for the body of the email? Or if i could use a report or something? Thanks.
I have a form for orders, wich creates reports, bills, etc. With some code, i grab the email address and create a new email attaching the report, but i want to attach a templae for the body of the email.
the code i have is :
DoCmd.SendObject acReport, "FacturasCorreo", "PDFFormat(*.pdf)", "" & Me.Correo & "", "", "", "Confirmación envío", "", True, ""
This gives me no problem, but, the last quotation marks stands for templates, and when i paste the route, no matter how i paste it, it doesnt work, anyone know how to use a template for the body of the email? Or if i could use a report or something? Thanks.