H
Herbert Becker
Hello all!
This question might be too trivial, but yet I need to
answer it, so please be patient.
Wnat I need to do is programmatically create a message
item in VBA (Access 2002, Windows XP), pre-fill the
fields "subject", "body" and "to" and show the result to
the user. The user then can complete/change the text and
send the message afterwards.
So far so good. I found code which can accomplish that.
But what I also need to do is to make an entry in a
database whether the created message was sent or not! Now
the user can either send the message or discard it, and
even if he chooses to send it an error on sending might
occur.
My idea was to display the created message with
olItem.Display True
to halt execution of the VBA code till the user closes the
message window and to pick up some sort of a return code.
Is there any way to retrieve success or failure for
sending that message? Or do I really have to search
the "Sent Items" folder for the maybe newly created
message?
Any comments/hints/links/code snippets would be very much
appreciated!
Herbert Becker
This question might be too trivial, but yet I need to
answer it, so please be patient.
Wnat I need to do is programmatically create a message
item in VBA (Access 2002, Windows XP), pre-fill the
fields "subject", "body" and "to" and show the result to
the user. The user then can complete/change the text and
send the message afterwards.
So far so good. I found code which can accomplish that.
But what I also need to do is to make an entry in a
database whether the created message was sent or not! Now
the user can either send the message or discard it, and
even if he chooses to send it an error on sending might
occur.
My idea was to display the created message with
olItem.Display True
to halt execution of the VBA code till the user closes the
message window and to pick up some sort of a return code.
Is there any way to retrieve success or failure for
sending that message? Or do I really have to search
the "Sent Items" folder for the maybe newly created
message?
Any comments/hints/links/code snippets would be very much
appreciated!
Herbert Becker