Home   |   Asp.Net 2.0   |   .Net Framework 2.0   |   IIS 6.0   |   Sql Server 2005   |   Visual Basic 2005   |   c# 2005   |   VS 2005   |   Visual Source Safe 2005

MS Dynamics CRM 3.0

SharePoint Portal Server 2003
SharePoint Server 2007
Dynamics NAV
Dynamics CRM
SharePoint Designer 2007
SharePoint Portal Server 2001
Windows SharePoint Services
Windows SharePoint Services 3.0
Project Server 2003
Project Server 2007
Dynamics – Point of Sale
Dynamics AX
Dynamics GP
Dynamics Retail Management System (RMS)
Dynamics SL
SQL Server 2000
Visual Basic .NET 2003
Visual C# .NET 2003
Visual C++ .NET 2003
Visual C++ 2005
Visual SourceSafe 6.0
Windows Server 2003
Windows Server 2003
Outlook 2003
ADO.NET 1.1
ASP.NET 1.0
Visual Studio Team Foundation Server
Visual Studio 2005 Team Edition
Windows Internet Explorer 7
BizTalk Server 2000
BizTalk Server 2002
BizTalk Server 2004
BizTalk Server 2006
Visual Studio 6.0
Access 2000
Access 2002
Access 2003
Access 2007
Access 97
Collaboration Data Objects 2.0
Commerce Server 2002
Content Management Server 2001
Commerce Server 2007
Content Management Server 2002
Data Access Components 2.7
Data Access Components 2.8
DirectX 9.0b
Office Small Business Accounting 2006
Accounting 2007
ActiveSync 4.1
Class Server 2.0
Groove 2007
Windows Vista
Outlook 2007
OneNote 2003
OneNote 2007
Office X for Mac
Zune software
Zune Live
Zoo Tycoon 2
Flight Simulator 2002
Dungeon Siege II

Cervo Technologies
The Right Source to Outsource

Oracle Database FAQS

Sharepoint Portal Server KB

Outlook 2007 Knowledge Base Articles

Collaboration Data Objects 2.0 Knowledge Base Articles

Describes a problem that occurs when you programmatically set a header field to an empty string, and the related header does not stay in sync. Includes a workaround for the problem.


When you programmatically set a header field to an empty string, the related header does not stay in sync. The initial value is still displayed when you run the query.

CAUSE

This problem occurs because when you set the interface property to an empty string, the related header is deleted. ActiveX Data Objects (ADO) looks for the field because it existed previously. Collaboration Data Objects (CDO) returns the DBSTATUS_E_DOESNOTEXIST status code for the field. ADO sets the status of the fields to adFieldDoesNotExist, but it does not update the values.

WORKAROUND

To work around this problem, explicitly set the header field to an empty string. For example, you can use the following code sample:
objMsg.Fields("urn:schemas:httpmail:subject") = ""
objMsg.Fields("urn:schemas:mailheader:subject") = ""

STATUS

Microsoft has confirmed that this is a bug in the Microsoft products that are listed in the "Applies to" section.

MORE INFORMATION

The following code sample illustrates this problem:
Dim objMsg As New CDO.Message
objMsg.Subject = "test subject"
Debug.Print objMsg.Fields("urn:schemas:httpmail:subject")   'Output: "test subject"
Debug.Print objMsg.Fields("urn:schemas:mailheader:subject") 'Output: "test subject"
        
objMsg.Subject = ""
objMsg.Fields.Resync

Debug.Print objMsg.Fields("urn:schemas:httpmail:subject")   'Output: "test subject"
Debug.Print objMsg.Fields("urn:schemas:mailheader:subject") 'Output: "test subject"
				

REFERENCES

For more information, visit the following MSDN Web sites:
http://msdn.microsoft.com/library/en-us/wss/wss/_cdoex_about_cdo_and_ado.asp (http://msdn.microsoft.com/library/en-us/wss/wss/_cdoex_about_cdo_and_ado.asp)
http://msdn.microsoft.com/library/en-us/ado270/htm/mdmthadoresync.asp (http://msdn.microsoft.com/library/en-us/ado270/htm/mdmthadoresync.asp)


APPLIES TO
Microsoft Collaboration Data Objects 2.0
Collaboration Data Objects for Exchange 2000
Microsoft ActiveX Data Objects 2.5

Keywords: 
kbbug KB328056

Copyright © 2004 - 2007 Gridview.org, Inc. All rights reserved. Powered by Smart Web Content Management System