Outlook has to be open for Access to talk to it under citrix, vmware

A

Aceware

Access 2003, vmware, citrix

The test function below works happily in my development environment in my
office but under citrix, vmware returns undefined application error at the
line that attempts to add recipients to the mail item.

Works ok if outlook is already running.

Any help very gratefully received

Tony Epton





Function test()

Dim objOutlook As Object

Dim objOutlookmsg As Object

Dim objOutlookRecip As Object



Set objOutlook = CreateObject("Outlook.Application")

Set objOutlookmsg = objOutlook.CreateItem(olMailItem)



With objOutlookmsg

' Add the To recipient(s) to the message.

Set objOutlookRecip = .Recipients.Add("(e-mail address removed)")



objOutlookRecip.Type = olTo



.Subject = "Test Header"

.Body = "Test Body"



.Save

.Send

End With



End Function
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top