Custom Form Version Check

C

Culverin

Good Morning:

We've been experiencing problems with our users opening older versions of
custom appointment forms. We have about 500 users across the country of
varying experience with working with Outlook. I'd like to implement a
bulletproof form version number check on the item Open event to ensure that
users always have the current version of the form.

Referencing the version number of the appointment item that is being opened
is very easy.

OpenedFormVersion = Item.FormDescription.Version

I need to compare this version number against the version number of the form
that is associated with (installed in) a folder; which is always the current
version.

The path to the folder for the form for which I want to get the version
number is

oNameSpace.Folders("Mailbox - NAT-CSD-Appointments").Folders("Offices")

What I'd like help with is the VB Script syntax to reference the version
number of the custom appointment form that is installed in the Offices folder.

Any help you can give will be greatly appreciated. Thanks.
 
S

Sue Mosher [MVP-Outlook]

The MS KB article at http://support.microsoft.com/?kbid=200176 shows how to use CDO 1.21 to access a form definition stored in a folder. Once you return the item, the version number is available as a MAPI property -- 0x6822001E. See http://www.cdolive.com/cdo10.htm if you need a primer on accessing MAPI properties with CDO.

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