Help forwarding form programmatically

T

Trent

Hi All,
We have a custom form published in the Organizational Forms folder on our
Exchange 2003 server and set to not send the form definition.

The form gets submitted to an approver and has approve and disapprove
buttons.
What we would like to do is when the approve or disapprove button is
pressed, to send the form on to another person.
The problem is that the form errors stating that the person approving does
not have rights to send on behalf of...

Is there a good way around this? I know we cannot programmatically alter
the FROM address to get around it. Is it possible to programmatically
forward the message instead? I have tried replacing Form.Send with
Form.Forward but nothing appears to happen. The message never arrives at
it's destination, does not give an error and no message is shown in Sent
Items.

Is there a simple way to replicate the entire message content into a new
message that can be sent rather than building it all manually again?
Or call up a new copy of the original form passing all the values to it?

What is the best approach? It seems that this must be a relatively common
situation.

Thanks.
 
S

Sue Mosher [MVP-Outlook]

Sounds like you're not using the Forward method correctly:

Set fwd = Item.Forward
fwd.To = "(e-mail address removed)"
fwd.Send

Make sure you have the Forward action on the custom form's (Actions) page set to use the published form.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
T

Trent

I think that is the problem. I had no info on the usage of Item.Forward and
was just jumping in to help a co-worker who was trying to make this work and
have not been trying it myself, just making suggestions.

Thanks Sue.

Sounds like you're not using the Forward method correctly:

Set fwd = Item.Forward
fwd.To = "(e-mail address removed)"
fwd.Send

Make sure you have the Forward action on the custom form's (Actions) page
set to use the published form.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
S

Sue Mosher [MVP-Outlook]

The object browser is your friend. Press F2 in Outlook VBA and look things up there.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top