sending e-mail

  • Thread starter Thread starter JIM.H.
  • Start date Start date
J

JIM.H.

Hello,

I have created a mail report button. It uses
stDocName = "myReport"
DoCmd.SendObject acReport, stDocName

myReport is working fine. However when I click the button
it asks me file type and profile name. I define them at
the end a Microsoft Exchange message "the object could not
be found". I am trying to send the report to myself and I
am able to use my outlook e-mail without problem. So I am
not sure if it is access or something else in our email
system.
Any help?
Thanks,
Jim.
 
*Not sure* as I don't use this often but IIRC, you need to have a Default
Mail Profile in your Windows settings.

Do you get asked for a Profile when you start Outlook?

Check Windows Control Panel / Mail settings to ensure that you have a
Default Mail Profile.
 
Thanks Van.
When I start outlook no I do not get asked for a profile.
When I use SendObject in the module I am asked for a
profile and I am selecting the only profile that I already
have there.
Is there any other way to send e-mail in the module?
Thanks,
Jim.
 
Have you checked in the Control Panel?

Other than that, I got no ideas as in a few times I used SendObject, I was
never asked for the Mail Profile.

If you can't find what's wring, try Outlook Automation.
 
Back
Top