I'm trying to send by e-mail a query result. I'm using the following code but keep getting an error. Any advise on what I can do to resolve the problem.
All declarations are complete...
The Error Message I get is...
"Microsoft Access can't send a message for the reason stated in the preceding alert.
Resolve that problem, and then send the message again."
I know that the query works fine. From the database window though I can't even use the 'Send To' option as an EXCEL attachment as I'll get the same error!
Any thoughts as to why this is occuring and how I might resolve the problem???
Thanks for any help!
All declarations are complete...
Code:
DoCmd.SendObject acSendQuery, "qry_EMail_Changes", acFormatXLS, strEMailAddress, , , "CFA Change Update", strMessageText, False
The Error Message I get is...
"Microsoft Access can't send a message for the reason stated in the preceding alert.
Resolve that problem, and then send the message again."
I know that the query works fine. From the database window though I can't even use the 'Send To' option as an EXCEL attachment as I'll get the same error!
Any thoughts as to why this is occuring and how I might resolve the problem???
Thanks for any help!