how to email an excel file

mana

Registered User.
Local time
Today, 11:16
Joined
Nov 4, 2014
Messages
265
hello,

i have a query in ms access
i want to makew an excel file from that and then send it via email
can you help me please?
thank you
 
Yes, but only if you are willing to help yourself. What have you tried? Will this be an automated process or a one time deal?
 
hello

i found this but it wasn't ok for me

DoCmd.SendObject acQuery, stDocName, "MicrosoftExcelBiff5(*.xls)", "C:\TEMP\Misc.xls", "", "", "Query in XL Format", "This is the Body Text", False, ""
 
What happened exactly? Error message?
 
yes

i had this message

run time error 2295
unknown message recipient
the message was not sent
 
i also got this warning
i uploaded it
 

Attachments

  • Unbenannt.jpg
    Unbenannt.jpg
    104 KB · Views: 87
thank you for your reply
but i want that the user enters the email address
in this link i found how to create a new message
but i don't know how to use it with creating the excel file and put this excel file in attachment, do you know this?
can you help us please?
 
How are users entering an email? Is there a form?
 
No, they don't. That command wouldn't open an email message for them to enter an email address. That command needs to be supplied a To address.
 

Users who are viewing this thread

Back
Top Bottom