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 - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Tags: , ,

Referencing a User-Defined Field





 
 
Thread Tools Display Modes
  #1  
Old January 13th 06, 01:51 PM posted to microsoft.public.outlook.program_forms
Chaplain Doug
external usenet poster
 
Posts: 38
Default Referencing a User-Defined Field

Outlook 2003. I have created a custom contact form and added two
"user-defined" fields called "Employment Date" and "Spouse Birthday." How
may I programmatically reference these fields in a contact? For instance, in
the following code, how would I reference the fields?

Dim olApp As New Outlook.Application
Dim olNS As Outlook.Namespace
Dim ctFolder As Outlook.MAPIFolder
Dim ctFolderItems As Outlook.Items
Dim iterateCtItems As Integer
Dim countCtItems As Integer
Dim IC As Integer
Dim Criteria As String
Dim itm As Object

On Error Resume Next
Set olNS = olApp.GetNamespace("MAPI")
Set ctFolder = olNS.Folders("Public Folders")
Set ctFolder = ctFolder.Folders("All Public Folders")
Set ctFolder = ctFolder.Folders("Good News Contacts")
Set ctFolderItems = ctFolder.Items
countCtItems = ctFolderItems.Count
'************************************************* *******
For Each itm In ctFolderItems
Debug.Print itm.FullName 'No problem for a standard contact field
Debug.Print itm.????????? 'What do I put for a user-defined
field?
Next
--
Dr. Doug Pruiett
Good News Jail & Prison Ministry
www.goodnewsjail.org
Ads
  #2  
Old January 13th 06, 03:54 PM posted to microsoft.public.outlook.program_forms
Hollis D. Paul
external usenet poster
 
Posts: 66
Default Referencing a User-Defined Field

In article ,
=?Utf-8?B?Q2hhcGxhaW4gRG91Zw==?= wrote:
For instance, in
the following code, how would I reference the fields?

Correct syntax for accessing Microsoft Outlook property and control
values and writing events that respond to changes in properties or
control values
http://www.outlookcode.com/d/propsyntax.htm


Hollis D. Paul [MVP - Outlook]
Mukilteo, WA USA



 




Thread Tools
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
Export & Import of outlook 2003 "User Defined Fields" at folder le Kamele0n Outlook - Using Contacts 1 February 25th 06 04:34 PM
How do I export contacts to excel with multiple user defined fiel. James Outlook - Using Contacts 3 February 10th 06 08:50 PM
user defined fields Karl-H. Engesser Outlook - Using Contacts 1 February 9th 06 02:33 PM
How do I rename user defined field names? Sue Mosher [MVP-Outlook] Outlook - Using Contacts 1 January 19th 06 03:13 AM
rename 'User Field 1' field ? E-Double Outlook - Installation 1 January 16th 06 03:38 PM


All times are GMT +1. The time now is 06:03 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2008 Outlook Banter, part of the NewsgroupBanter project.
The comments are property of their posters.
Mortgages - Unsecured Loans - Free Credit Report - Free Ringtones - Fast Loans