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

Help Resolving Error 2293 1

Status
Not open for further replies.

HiBoo

Programmer
Jan 11, 2000
88
CA
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...

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!



 
By any chance is the query coming from a table that has an ODBC Link?

I have found it necessary to create a temporary table with the data and then export it because the program appears to time out on some of these querries.
 
The query comes from a local table. Time is not a factor because there is only one row of data.
 
Check one the following MS Knowledgebase articles.

Access 97:

Access 2000:
Terry L. Broadbent
faq183-874 contains some tips and ideas for posting questions in these forums. Please review it and comment if you have time.
NOTE: Reference to the FAQ is part of my signature and is not directed at any individual.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top