Results 1 to 2 of 2
  1. #1
    Join Date
    May 2004
    The Netherlands

    Arrow Unanswered: Error at Cancel DoCmd.SendObject

    When I cancel the Docmd.SendObject statement then I got an error.

    In the procedure I used the following statements to send a report as snapshot attachment by e-mail:

    On Error GoTo MailError

    DoCmd.SendObject acSendReport, "R_Report", acFormatSNP

    I placed the following error handling in the procedure:

    If Err.Number = 2501 Then
    'Put the focus on the parent form in case sending of the e-mail was cancelled
    End If

    When I close the email-message, without sending it, it generates an error.
    The stupid thing is, when I run in debug mode it works fine.
    When running the application as normal, it produce a form_error with error number 0.
    Does anybody knows how to fix this? (rebooting the system won't work)
    (Win2K prof. and Off2K Pro SR1)
    Thx in advance!

  2. #2
    Join Date
    May 2004
    The Netherlands

    Exclamation Nobody knows?

    Does nobody knows or recognize this problem? Please I need help!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts