OL2000: You Cannot Access a Custom Form If You Use the Outlook Object Model (287525)



The information in this article applies to:

  • Microsoft Outlook 2000

This article was previously published under Q287525

SYMPTOMS

When you try to access a custom form with the Microsoft Outlook object model, you receive the following error message:
The custom form could not be opened. Outlook will use an Outlook form instead.

CAUSE

Microsoft provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes that you are familiar with the programming language being demonstrated and the tools used to create and debug procedures. Microsoft support professionals can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific needs. If you have limited programming experience, you may want to contact a Microsoft Certified Partner or the Microsoft fee-based consulting line at (800) 936-5200. For more information about Microsoft Certified Partners, please visit the following Microsoft Web site: For more information about the support options that are available and about how to contact Microsoft, visit the following Microsoft Web site: This problem occurs because of how Outlook 2000 accesses the property on a custom form. The following is an example of how Outlook 2000 accesses the EntryID property on a custom form:
dim objOOM as object
dim objDrafts as object
dim objForm as object

' Touch all forms in the Drafts (id = 16) folder
set objOOM = CreateObejct("Outlook.Application")
set objDrafts = objOOM.GetNamespace("MAPI").GetDefaultFolder(16)
for each objForm in objDrafts.Items
     MsgBox objForm.Subject & " " & objForm.Entryid
next objForm
				

RESOLUTION

To resolve this problem, obtain the latest service pack for Microsoft Office 2000. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

276367 OFF2000: How to Obtain the Latest Office 2000 Service Pack

The English version of this fix has the file attributes (or later) that are listed in the following table. The dates and times for these files are listed in coordinated universal time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel.
   Date         Time    Version       Size       File name
   ----------------------------------------------------------
   26-Jan-01    7:03:59  9.0.0.4924   5,324,850  Outllib.dll
   26-Jan-01    7:05:20  9.0.0.4924   1,675,315  Outllibr.dll
				

WORKAROUND

To work around this problem, access a custom form through Collaboration Data Objects (CDO) instead of the Outlook object model.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

This problem was first corrected in Microsoft Office 2000 Service Pack 3 (SP-3).

Modification Type:MinorLast Reviewed:9/23/2005
Keywords:kbHotfixServer kbQFE kbOffice2000SP3Fix kbbug kberrmsg kbfix kbOffice2000preSP3fix KB287525