View Single Post
  #1  
Old April 26th 07, 04:22 PM posted to microsoft.public.outlook.program_forms
John Lane
external usenet poster
 
Posts: 26
Default Can't Get From Field in Custom Form

The code below in a custom form displays various fields except the From field
(which I dragged over from the Field Chooser). I used the name in the
properties, but I guess that's not it - the VB script gets an error. Could
someone tell me what the correct From field name is? Thanks.

Sub Item_PropertyChange(ByVal Name)

If Name = "Subject" then
msgbox "hello - Subject"
MsgBox "Subject = " & Item.subject
MsgBox " User Field Test = " & Item.UserProperties.Item("Test")
MsgBox "From = " & Item._RecipientControl1
end if

End Sub

Ads