A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Access » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

access/outlookexpress messagebox problem



 
 
Thread Tools Display Modes
  #1  
Old March 1st, 2006, 01:44 AM posted to microsoft.public.access.gettingstarted
external usenet poster
 
Posts: n/a
Default 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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

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


All times are GMT +1. The time now is 03:56 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.