View Single Post
  #8  
Old October 18th 07, 10:08 PM posted to microsoft.public.outlook.program_forms
GSK
external usenet poster
 
Posts: 17
Default Custom Meeting Request form

Thanks Sue.
In the Custom form I have added _RecipientControl1 field from the Field
chooser and renamed the Field name to RecipientControl1
I am not able to set the value for the field. THe below code doesn't work.
Please let me know how to set the value. What am currently trying to do is
based on the resource entered, identify the city where the User belongs to
and Query the Meeting Room in the city (meeting room is again an Outlook GAL
resource) and I want to populate the value to the Recipeitn Control.

Set objPage = Item.GetInspector.ModifiedFormPages("P.2")
Set objControl = objPage.Controls("RecipientControl1")
objControl.Value = "Meeting Room Austin"
Msgbox objControl.Value

Thanks
Siva

"Sue Mosher [MVP-Outlook]" wrote:

For an Exchange user? Yes, it's possible using CDO 1.21 or, to avoid security prompts, Redemption (http://www.dimastr.com/redemption/). See http://www.outlookcode.com/codedetail.aspx?id=594 for Redemption sample code that's similar to what you might be thinking of.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"GSK" wrote in message ...
Please let me know would
it be possible to a use
MAPI.Session/address/field and query the CdoPR_BUSINESS_ADDRESS_CITY value
and display in text field on click of button in the Custom form.



Ads