XLEAccessGuru
06-12-2007, 10:36 AM
Hello everyone! Does anyone have any code snippets that will pull up the outlook address book from an access form and insert the selected contact(s) into the "To" text box I have on my form?
Any help appreciated!!!
:D
vodafrog
07-10-2007, 12:58 PM
Access 2002 onwards has the ability to link or import your Outlook Contacts folder directly, use the get External data, Link table, select Outlook contacts.
You can then use this table as the datasource to a listbox, and then allow multiselect. As each contact is selected, append the email address to your to field on your form, this would need code in order to do this.
alternatively you will need to use the Outlook Object Library, you will need to add this as a reference in your VBA code section, and use it methods and properties to access the contacts folder, etc.