CAUSE
This problem occurs because the CDO methods that activate the dialog box with the following message cause a z-order issue that resets the focus to the Outlook Frame window:
A program is trying to access e-mail addresses you have stored in Outlook. Do you want to allow this
If the Outlook object model activates the same dialog box with the same message, the problem does not occur.
RESOLUTION
To resolve this problem, obtain the latest service pack for Microsoft Office XP. For additional information, click the following article number to view the article in the
Microsoft Knowledge Base:
307841 OFFXP: How to Obtain the Latest Office XP Service Pack
The English-language version of this fix should have the following file attributes
or later:
Date Time Version Size File name
-------------------------------------------------------
08-Mar-2002 19:18 2,633,420 Outlook.msp
08-Mar-2002 19:18 4,644,728 Outlook_admin.msp
After the hotfix is installed, the following files will have the listed
attributes or later:
Date Time Version Size File name
--------------------------------------------------------------
23-Jan-2002 13:32 10.0.3716 342,344 Exsec32.dll
11-Jan-2002 15:59 10.0.3708 534,856 Outlcm.dll
07-Mar-2002 21:35 10.0.3905 6,306,120 Outllib.dll
20-Dec-2001 09:44 10.0.3618 92,488 Outlmime.dll
02-Feb-2002 16:14 10.0.3729 117,064 Outlph.dll
29-Nov-2001 02:21 10.0.3527 47,432 Recall.dll
Additionally, you must enable the following registry key for this fix
HKCU\Software\Microsoft\Office\10.0\Outlook\Options CDO_Focus = 1
where
CDO_Focus is a DWORD value.
WORKAROUND
To work around this problem, use the Outlook object model in your custom forms for the property that you need instead of using CDO. The following example demonstrates the use of the Outlook object model for the property instead of CDO:
Using CDO:
Using the Outlook object model: