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

Outlook Warning: ...because the other application is busy

Status
Not open for further replies.

seaport

MIS
Jan 5, 2000
923
US
My codes start an email in outlook.
Code:
    With objOutlookMsg
        .To=sEmails
        .Body = strMessage
        .Display
    End With
However, somehow, sometimes, the "Display" method takes a long time to execute. When this happen, the Access form screen looks frozen. If a user tries clicking on something, the following warning appears.
"This action cannot be completed because the other application is busy. Choose 'Switch To' to activate the busy application and correct the problem."
The warning message flicks and the user has a hard time clicking on it. After a few seconds, the Outlook email appears.
I noticed that, if I click "Send and Receive" on Outlook and then immediately go to the Access form, click the button to start the mail, I will surely get this warning. (By the way, for some reason, there is no security warning in my Outlook 2003.)

Here are my questions:
1. Should this message appear in the first place? I do not think this warning should appear because there is no dialog box open in Outlook 2003.
2. If this warning should appear because my code takes long time (I am not sure why), is that any way to avoid/supress it?

Seaport
 
Is there any particular reason you're displaying the message rather than just sending it? You seem to have the message body and the To address filled with variables already.
 
The inserted message is a standard message generated from the database. But the user needs to add some "personal touch" before it is sent out.

Does "Display" takes more resources than "Send" method?

I think both Display and Send method initiate the "Resolve" method, which somehow, in my case, takes a long time to run.

Seaport
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top