Sue's vaction request form

D

dp

I'm trying to modify Sue's vacation request form to CC another user once the
manager has approved or disapproved the request. I've seen in another post
where Sue says to add an "Item_CustomAction event handler" but I'm not sure
what to put in there. This is what I have so far.



Function Item_CustomAction(ByVal Action, ByVal NewItem)



End Function



Any help would be greatly appreciated.
 
S

Sue Mosher [MVP]

Action is the custom action from the (Actions) tab. NewItem is the new item
that action creates. If you want to add code, use a Select Case statement to
handle each action:

Function Item_CustomAction(ByVal Action, ByVal NewItem)
Select Case Action.Name
Case "Approve"
' your approval code goes here
Case "Deny"
' your denial code goes here
End Select
End Function

The vacation request form already has examples of this.
 
D

dp

Thank you for your reply Sue, I was able to get the CC to work. I just
added the CC field to the form and then edited it with the e-mail address
that I wanted. I'm assuming behind the GUI it did what you had suggested.
I do have another question but I'll create a new post.

Thanks again.
 
S

Sue Mosher [MVP]

Note that, unless you're using a different form to handle the management
responses, the cc will go with the original request, as well as the
response.
--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
D

dp

Yeah the CC is just on the Approval form.


Sue Mosher said:
Note that, unless you're using a different form to handle the management
responses, the cc will go with the original request, as well as the
response.
--
Sue Mosher, Outlook MVP
Author of
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