C
Chris O''''Neill
Btw, do you happen to have any sample Access code for opening Outlook to a
specific contact item? I have the code finished to create an item if one
doesn't exist, but I really want to do this:
If contact item exists then
load contact item and let user edit it if they want '<-- This is
what I need
Else
create a new contact item ' <--- I have this code done
End If
I'm told that I need to store the contact item ID and parent store ID and
use that in the Namespace,GetItemfromID method. So far, I have this code in
my "create a contact item" routine to grab the entry ID and parent store ID:
With objContact
(code to create Outlook contact item)
.save
Me.OutlookEntryID = .EntryID
Me.OutlookParentStoreID = .Parent.StoreID
End With
When this code runs, I get nothing ("") in Me.OutlookEntryID and a *really*
long number in Me.OutlookParentStoreID. So, I *think* I've got the parent
store ID but it looks like I'm not getting the contact item's entry ID. Am I
doing something wrong?
Also, once I've got these ID's (and have stored them in the contact's record
in my Access database, how do I use Namespace,GetItemfromID to call up the
contact record?
Any help and/or code snippets would be *really* helpful! Thanks, in advance!
Regards, Chris
specific contact item? I have the code finished to create an item if one
doesn't exist, but I really want to do this:
If contact item exists then
load contact item and let user edit it if they want '<-- This is
what I need
Else
create a new contact item ' <--- I have this code done
End If
I'm told that I need to store the contact item ID and parent store ID and
use that in the Namespace,GetItemfromID method. So far, I have this code in
my "create a contact item" routine to grab the entry ID and parent store ID:
With objContact
(code to create Outlook contact item)
.save
Me.OutlookEntryID = .EntryID
Me.OutlookParentStoreID = .Parent.StoreID
End With
When this code runs, I get nothing ("") in Me.OutlookEntryID and a *really*
long number in Me.OutlookParentStoreID. So, I *think* I've got the parent
store ID but it looks like I'm not getting the contact item's entry ID. Am I
doing something wrong?
Also, once I've got these ID's (and have stored them in the contact's record
in my Access database, how do I use Namespace,GetItemfromID to call up the
contact record?
Any help and/or code snippets would be *really* helpful! Thanks, in advance!
Regards, Chris