Need help with an Outlook Form

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.
 
H

Hollis Paul [MVP - Outlook]

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.
 
S

Sue Mosher [MVP-Outlook]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top