R
Richard
I have create a custom form for vacation request. Once the manager
receive the application, he/she will click on an custom action button
"approve" or "reject". However, after they click on either action
button, the form has no problem sending back to the applicant but it
won't be closed and they have to close it manually. In this case, I
have added some VB code into the form, but it seems it doesn't work at
all.
Sub Item_CustomAction(ByVal Name)
Select Case Name
Case "Approved"
item.close(0)
Case "Rejected"
item.close(0)
End Select
End Sub
I'll be grateful if anyone will tell me what's wrong with the script.
Thanks!
Richard
receive the application, he/she will click on an custom action button
"approve" or "reject". However, after they click on either action
button, the form has no problem sending back to the applicant but it
won't be closed and they have to close it manually. In this case, I
have added some VB code into the form, but it seems it doesn't work at
all.
Sub Item_CustomAction(ByVal Name)
Select Case Name
Case "Approved"
item.close(0)
Case "Rejected"
item.close(0)
End Select
End Sub
I'll be grateful if anyone will tell me what's wrong with the script.
Thanks!
Richard