|
Question : Synchronize Outlook with Access Contact Manager
|
|
I'm thinking about writing a routine that will synchronize a limited number of Outlook fields with fields in a custom Access DB. I've obtained (thnx EE!) a code block that shows me how to read and update Outlook contacts, and I can sort of imagine the logic that I need to do various things under various conditions like add to outlook, update outlook to match the Access DB, and update Access DB to match outlook. Kinda like what my Palm used to do, before it became industrial waste.
What I'm having trouble visualizing at the moment though is how, as I loop through outlook contacts, I might take the first and last names from outlook and try to find a matching record with those field values in the Access DB.
I'm sort of OK with recordsets and queries, but I can't get a handle on how to start this. Even some general pseudo-code to point the way would help...probably needs to be at least pseudocode because human language explanations at this level will probably elicit a "huhn?"
Any help with this would be appreciated.
Thanks!
|
|
Answer : Synchronize Outlook with Access Contact Manager
|
|
Hello codequest,
I did something similar a couple of years back. To facilitate synchronization, I stored the Access primary key value in the "User1" property of each contact item, and in the Access table I stored the Outlook item's last modified datetime.
Then, my sync routine would loop through my Outlook contacts. If it found an item with User1 populated and a last modified datetime later than in Access, I updated the Access record. If the Outlook item had a null for User1, then I added it to Access.
Regards,
Patrick
|
|
|
|