J
Jeff Moore
Does anyone know how I can prevent conflicted contact items from being included in the Items collection returned by a "restrict" method of the items collection
I currently using
Dim sFolderPath As String ' Complete path of Outlook folde
Dim sRestrict As Strin
Dim oFolder As MAPIFolder ' Outlook folder objec
Dim oContacts As Items ' Collection of items in Outlook folde
Dim oContact As ContactItem ' Single Outlook contact ite
sRestrict = "[RelationshipType] = 'Group/Meetings' AND [ItemStatus] <> 'Moved'
Set oContacts = oFolder.Items.Restrict(sRestrict
If oContacts.Count > 0 The
For Each oContact In oContact
' do my stuff her
Nex
End I
When the code tries to set oContact to an Item with a conflict, it creates a "type mismatch" error.
How do I prevent this?
I currently using
Dim sFolderPath As String ' Complete path of Outlook folde
Dim sRestrict As Strin
Dim oFolder As MAPIFolder ' Outlook folder objec
Dim oContacts As Items ' Collection of items in Outlook folde
Dim oContact As ContactItem ' Single Outlook contact ite
sRestrict = "[RelationshipType] = 'Group/Meetings' AND [ItemStatus] <> 'Moved'
Set oContacts = oFolder.Items.Restrict(sRestrict
If oContacts.Count > 0 The
For Each oContact In oContact
' do my stuff her
Nex
End I
When the code tries to set oContact to an Item with a conflict, it creates a "type mismatch" error.
How do I prevent this?