If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
access/outlookexpress messagebox problem
I am opening OutlookExpress from an Access form. Everything works fine and I
can attach files using the following code: ... If hFile 0 Then If EmailWrite(hFile, Email) Then RunShellExecute "Open", sTmpFile, vbNullString,vbNullString,vbNormalFocus End If End If ' Wait until Outlook Express is ready While Ret = 0 DoEvents Ret = FindWindow(vbNullString, msgTitle) Wend zip_file = "D:\test.zip" SendKeys "%ia" & zip_file & "{TAB}{TAB}{ENTER}" However if I then add the following line: confirm = MsgBox("Click ok to set confirmed field ", vbOKCancel, "Confirm") the file is not attached and when I close Outlook Express the message box does not appear. If I remove the SendKeys line the message box appears when I close Outlook Express. (The file is obviously not attached) I would be grateful if someone could explain why this is, and how I can get a message box to open after I have succesfully attached the file to the email. Thanks Reg |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Relationship Problem | JNariss | New Users | 4 | December 14th, 2005 08:46 PM |
Strange problem with different networks. | Adam | General Discussion | 1 | March 13th, 2005 10:17 PM |
Reinstalling OE... | KAR | Outlook Express | 24 | August 21st, 2004 06:52 PM |
Productkey problem when installing office 2003 on network | Stefan Schreurs | Setup, Installing & Configuration | 1 | June 1st, 2004 11:16 PM |
word error | mac | General Discussions | 1 | May 6th, 2004 08:14 AM |