Need help with an Outlook Form

  • Thread starter Thread starter Andrew Sampels
  • Start date Start date
A

Andrew Sampels

I can't seem to find a way to reference to a custom field. the fields
are in the user defined fields in folder, not items.

so I can't seem to find a way to reference them.

Item.UserProperties("fieldname") doesn't get me there.

So is there a simple way to reference them or do I have to create my
custom fields in a different way.

Using outlook 2003 on exchange 2000. Working with appointments in a
public folder and all the appointments need the custom fields when they
are created.

Thanks.
 
Andrew Sampels said:
so I can't seem to find a way to reference them.

Item.UserProperties("fieldname") doesn't get me there.
If the fields are defined in the folder, and the Item was created by
using the ADD method of the Items collection object, then you can
reference them with Item.UserProperties("fieldname"). If that
reference actually returns a nothing, then the field does not have a
value yet. Perhaps you should change the form's design to put an
initial value into the field, like 0 or the empty string, etc.
 
Sounds like you either didn't create the fields correctly or didn't add them to the form correctly. They need to be visible on the form's All Fields page under User-defined Fields in Item. Best practices are described at http://www.outlookcode.com/d/fields.htm

To repair the current form so that your code works, the easiest method might be to drag the desired fields from the Field Chooser to an empty custom page.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Back
Top