I'm currently writing a Visual Basic component which references CDO for a corporate intranet.
One of the methods of my component will be used to search within the Global Address List for a specific NT user so that I can retrieve their SMTP address & send them emails.
Everything was going fine with writing this component, I can start and log into a MAPI session & gain access to the 'Global Address List' but I am now having problems using one of the MAPI property tags called PR_EMS_AB_ASSOC_NT_ACCOUNT.
I have seen an MSDN article where PR_EMS_AB_ASSOC_NT_ACCOUNT is defined as a
cdo constant - CdoPR_EMS_AB_ASSOC_NT_ACCOUNT with value &H80270102.
Unfortunately, whenever I try & gain access to this property using the 'fields' collection of the AddressEntry object ...
Private Const CdoPR_EMS_AB_ASSOC_NT_ACCOUNT = &H80270102
strSID = objAddressEntry.Fields CdoPR_EMS_AB_ASSOC_NT_ACCOUNT).Value
... I get a 'MAPI_E_NOT_FOUND' error. I guess this
is because CDO cannot locate the PR_EMS_AB_ASSOC_NT_ACCOUNT property within
the AddressEntry object despite the documentation within MSDN which suggests otherwise! Please can somebody tell me what I might be doing wrong, or perhaps there is another way to approach this problem?