Presumably the form has script that runs when the Accept or Decline button is clicked. That script would be in the Item_CustomAction event handler; that's where your code would need to set the address for the outgoing response item.

Signature
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx
> I am using a holiday request form which I downloaded from a website
>
[quoted text clipped - 13 lines]
>
> ------------------------------------------------
shaz_rutherford - 21 Dec 2003 16:11 GMT
This is what is in the code window. I have got the cc: field to work but it sends the request to the cc: not the response from the sent to: field.
Function Item_CustomAction(ByVal Action, ByVal NewItem)
select case Action.Name
case "Approve"
item.userproperties.find("Approved") = true
Actions.Item("Approve").Enabled = False
Actions.Item("Deny").Enabled = False
NewItem.Body = "Your request from " & (item.userproperties.find("Days Off From")) & " to " & (item.userproperties.find("Days Off To")) & "for " & (item.userproperties.find("Totaldays"))& " days leave has been approved."
case "Deny"
item.userproperties.find("Denied") = true
Actions.Item("Approve").Enabled = False
Actions.Item("Deny").Enabled = False
NewItem.Body = "Your request from " & (item.userproperties.find("Days Off From")) & " to " & (item.userproperties.find("Days Off To")) & "for " & (item.userproperties.find("Totaldays"))& " days leave has been denied."
end select
item.close(0)
Item_CustomAction = true
End Function
Sue Mosher [MVP] - 22 Dec 2003 22:46 GMT
Did you have the actions set up to "address like reply"?
> This is what is in the code window. I have got the cc: field to work but it sends the request to the cc: not the response from the sent to: field.
>
[quoted text clipped - 18 lines]
>
> End Function
It is set to reply.
The forward isn't enabled though, could this be it