• SendObject and Oulook (Access 2002 SP-1)

    Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » SendObject and Oulook (Access 2002 SP-1)

    Author
    Topic
    #376638

    Background:
    I have a database where I would like to send a snapshot of a report via code. I built a Macro with the sendobject command and supplied all the necessary arguments. I then did a Save As to create a module. I placed the code behind a button on my form. When I click the button it looks like everything is going through its motions. It ask me for a profile, I choose Outlook. Outlook gives me a warning that an application is automatically sending an email, I choose not to cancel. I click the yes option when it becomes available. Access gives me the error message: Unknown message recipient(s); message not sent. I have entered my contact information and saved it in Outlook.

    Can anyone shed some light on this problem.

    Thanks in advance
    Tom

    Viewing 0 reply threads
    Author
    Replies
    • #617675

      You’ll need to post the code before anyone can be sure they’re giving you the right answer. It sounds like the address you’re entering isn’t resolving properly.

      • #617679

        Here is the line of code.
        DoCmd.SendObject acSendReport, “rptBugs”, “SnapShotFormat(*.snp)”, “tfarrington@mindspring.com”, “cc”, “bcc”, “Bug Reported on: ” & Now(), “Double Click on Snapshot.”, False, “”

        • #617693

          Your problem appears to be here: “Double Click on Snapshot.” Unless SendObject has changed a lot between A2k and AXP, you’ve got an extra argument there where it expects a true/false EditMessage value.

        • #617696

          Don’t put in the “cc” and “bcc”. If you are not sending copies to anyone just leave these blank but retain the commas.
          Also, since the template argument at the end is blank leave it and its comma off.

          Your code will be

          DoCmd.SendObject acSendReport, “rptBugs”, “SnapShotFormat(*.snp)”, “tfarrington@mindspring.com”,,, “Bug Reported on: ” & Now(), “Double Click on Snapshot.”, False

    Viewing 0 reply threads
    Reply To: SendObject and Oulook (Access 2002 SP-1)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: