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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using Outlook Contacts from Access

Status
Not open for further replies.

sha76

Programmer
Sep 2, 2002
5,085
GB
Hi, hope someone can help me with this one...

I want to be able to open an Outlook contact form, linked to names on a client database.

I need this to work whether or not the user has Outlook open, so I'm creating it as a new Outlook application.

Opening it is fine, but when it's closed, if there was already an instance of Outlook open, this gets the focus.

Any code written in Access (eg to SetFocus to the form) doesn't seem to run until I manually return to the database. I've tried using WithEvents in the dim statement for my Outlook application variable and coding for the OnClose event, but this is the same. If I use Quit then the contact form closes itself after about 30 seconds.

Thanks for your help,

Sharon

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top