A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Passing values from custom form into another form's text box



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old February 5th 10, 01:15 AM posted to microsoft.public.outlook.program_vba
Bear
external usenet poster
 
Posts: 28
Default Passing values from custom form into another form's text box

I have a custom form that can be accessed as part of creating a new appointment in the calendar. Custom form is a second tab.
How would one take values from the 3-4 fields in the form(second tab) and pass these values into first tab(appointment itself: Subject, Location, Start time and Endtime already there by default) values should be posted into the big white text box that is normally used to enter notes about the appointment.

Any help would be greatly appreciated..
Submitted using http://www.outlookforums.com
Ads
  #2  
Old February 5th 10, 03:38 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Passing values from custom form into another form's text box

That big white are is the Body.

You would access the data in the custom tab in one of 2 ways. If the fields
there are bound to Outlook properties you can access the data either from
the custom property associated with the data control, or you can access it
from the control value.

From the user property, if the property for some text in a textbox is a text
property named Foo you would get the data this way, assuming Item is your
item reference:

Dim sData As String
sData = Item.UserProperties.Item("Foo").Value

If the data is only on a control named textFoo on a custom tab named FooTab
you'd use this:

sData =
Item.GetInspector.ModifiedFormPages.Item("FooTab") .Controls.Item("textFoo").Value

You might want to go to www.outlookcode.com and review the material in the
forms sections there to get a handle on the basics of Outlook custom forms.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"bear" swin_1234[at]yahoo[dot]com wrote in message
...
I have a custom form that can be accessed as part of creating a new
appointment in the calendar. Custom form is a second tab. How would one
take values from the 3-4 fields in the form(second tab) and pass these
values into first tab(appointment itself: Subject, Location, Start time and
Endtime already there by default) values should be posted into the big
white text box that is normally used to enter notes about the appointment.

Any help would be greatly appreciated.. Submitted using
http://www.outlookforums.com


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
retrieving values from custom outlook form using vsto and c# nitro Outlook - Using Forms 3 February 11th 09 08:31 PM
retrieving values from custom outlook form using vsto and c# nitro Outlook - Using Forms 0 February 10th 09 11:24 PM
Combo Box Values in Custom Form thequietDOMINO Outlook - Using Forms 23 September 17th 07 07:46 PM
Custom Form doesn't have any values in another Calendar ML Outlook - Using Forms 3 April 13th 06 09:41 PM
Get values of custom variables from customised contact form Michael Anderson Outlook and VBA 1 February 6th 06 10:06 PM


All times are GMT +1. The time now is 08:40 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.