Outlook 2003 Address Book folders

K

kosecki

Hi, I've wrote a small program to synchronize sqlserver with outlook
address book. I'm a little bit confused becouse:


A part of code

fold = objFolder.Folders("name")

If fold Is Nothing Then
Dim fold2 = objFolder.Folders.Add("name")
fold = objFolder.Folders(gdzie)
fold.ShowAsOutlookAB = True
End If

Everything is all right, folder if doesn't exists will be
created....but
when I remove these folder from Outlook contact folder, in address book
created folder with contact still exist, and when I do run my program
again, in address book the same folders will be created (the same name,
so my question is how to synchronize contact folder with address book.
 
S

Sue Mosher [MVP-Outlook]

The Address Book contains no Outlook data itself. It is rather a display container for address lists, including those contacts folders for which ShowAsOutlookAB = True.

It sounds like your program continues to create new copies of such folders even after you remove old copies. Maybe it's time to look at the program logic?

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
K

kosecki

The problem is when you are:

-create folder in outlook
-set the ShowAsOutlookAB = True (folder visible in address book)
-then delete created folder in outlook
BUT in address book folder is still visible, so my question is how to
force outlook (or address book) to delete folder from ab and outlook
together.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top