Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Filtering details fetched from Exchage Server

Status
Not open for further replies.

pankajv

Programmer
Jan 30, 2002
178
IN
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

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top