I have to fetch the details of a user whose alias(cdoPR_ACCOUNT) is known. I wrote som code where I used a filter to get only the details of the user for which the alias is known. Instead of exact search the results are fetched like a partial search(if I have passed "pet" I am getting records which have "pete" or peter etc.)
Is there a way by which I can apply an exact filter?
Here is the code which I have used to do filtering:
Set oAddressList = oSession.AddressLists("Global Address List"
Set oAddressEntries = oAddressList.AddressEntries
Set oAddrEntryFilter = oAddressEntries.Filter
sCriteria = "vpxv"
oAddrEntryFilter.Fields.Item(CdoPR_ACCOUNT) = sCriteria
Is there a way by which I can apply an exact filter?
Here is the code which I have used to do filtering:
Set oAddressList = oSession.AddressLists("Global Address List"
Set oAddressEntries = oAddressList.AddressEntries
Set oAddrEntryFilter = oAddressEntries.Filter
sCriteria = "vpxv"
oAddrEntryFilter.Fields.Item(CdoPR_ACCOUNT) = sCriteria