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!

Outlook process does not stop

Status
Not open for further replies.

adstam

Technical User
Feb 28, 2001
25
I have an VBA application (in MS Access) as an interface between an access database and outlook contact files.

The connection to outlook is set up by using

Dim ObjOutlook as Outlook.Application
Dim Nms as Outlook.NMS
Set ObjOutlook = CreateObject("outlook.application")
Set Nms = ObjOutlook.GetNamespace("MAPI")

At the end of the procedure the variables are set to Null:
Set ObjOutlook = Null
Set Nms = Null

The procedure starts an Outlook process in Windows. At the end of the procedure MS Access is closed down, but the Outlook session is not killed. Everytime the procedure starts there is a new outlook process created.

Do i do something wrong with starting the outlook process, or is there a way to stop the outlook process at the end of my vba procedure?

Ad

 
You may try this:
ObjOutlook.Quit

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
I tried it... sadly it did'nt make any difference

Ad
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top