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

Custom Form Version Check



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old August 24th 06, 03:01 PM posted to microsoft.public.outlook.program_forms
Culverin
external usenet poster
 
Posts: 26
Default Custom Form Version Check

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.
  #2  
Old September 1st 06, 08:29 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Custom Form Version Check

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
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Culverin" wrote in message ...
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.

 




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
Check Boxes in a custom view DoubleDown Outlook - Using Forms 0 July 3rd 06 08:02 PM
why did my outlook form revert to an old version? sadcassie Outlook - Using Contacts 3 June 16th 06 04:35 PM
Emailing a contact vCard with custom form loses all custom info Kim Outlook - Using Contacts 7 April 27th 06 12:21 AM
Valid entries for Version and Form Number sublimese Outlook - Using Forms 4 February 9th 06 09:17 PM
Cannot programmatically open custom message in custom form ms Outlook - Using Forms 1 January 20th 06 03:01 PM


All times are GMT +1. The time now is 12:29 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.