Article ID: 170320 - Last Review: February 12, 2007 - Revision: 2.3 OL97: How to Programmatically Import Outlook Items from AccessThis article was previously published under Q170320 On This PageSUMMARY
This article provides an overview and example code for creating Microsoft
Outlook 97 Contacts from information stored in a Microsoft Access 97
database. The sample code below would be run from an Access 97 global
module and provides a starting point for the development of a complete
solution.
NOTE: There is also an overview and separate code example available on the Microsoft web site at the following location. It is the first example in the whitepaper. http://msdn2.microsoft.com/en-us/office/aa905351.aspx
(http://msdn2.microsoft.com/en-us/office/aa905351.aspx)
NOTE: Because the Microsoft Web site is regularly updated, the site
address may change without notice. If this occurs, link to the Microsoft
home page at the following address:
http://www.microsoft.com/
(http://www.microsoft.com/)
MORE INFORMATION
Outlook 97's Import and Export feature does not allow you to import or
export information in user-defined fields (or properties). To import
information into these fields, you need to create a programming solution
that uses Automation to convert the information.
The following example code specifically converts information from Microsoft Access into newly created Outlook Contacts, using Data Access Objects (DAO 3.5). With modifications, you can use this code as a basis for creating other types of Outlook items, such as appointments, notes, tasks, and such. 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 Microsoft Advisory Services. For more information, visit these Microsoft Web sites: Microsoft Certified Partners - https://partner.microsoft.com/global/30000104 (https://partner.microsoft.com/global/30000104) Microsoft Advisory Services - http://support.microsoft.com/gp/advisoryservice (http://support.microsoft.com/gp/advisoryservice) For more information about the support options that are available and about how to contact Microsoft, visit the following Microsoft Web site: http://support.microsoft.com/default.aspx?scid=fh;EN-US;CNTACTMS (http://support.microsoft.com/default.aspx?scid=fh;en-us;cntactms) Programming Considerations
169750
(http://support.microsoft.com/kb/169750/EN-US/
)
OL97: How to Programmatically Resolve a Contact's
E-mail Address
Example CodeREFERENCES
For more information about creating solutions with Microsoft Outlook 97,
please see the following articles in the Microsoft Knowledge Base:
| Article Translations
|

Back to the top
