MikeRussell
Programmer
I am using the following code in a loop. It worked fine with MSAccess2000, WinNT and Outlook98, but now doesn't work with MSAccess2000, Win2000 and Outlook2000.
DoCmd.SendObject , , , Tempemail, , , "Confirmation of Bank Account Transfer", emailtxt, False, False
Tempemail is a variable that holds the email address
emailtext is a variable that holds the email content
Only the first email gets sent, the code continues to loop with no errors or warnings but does not send any more emails. Also if I run the code again, with the same session of Access open no emails get sent. If I reload Access I will get one email sent.
So the conclusion is that only one email gets sent per session of Access.
Has anyone got any advice?
DoCmd.SendObject , , , Tempemail, , , "Confirmation of Bank Account Transfer", emailtxt, False, False
Tempemail is a variable that holds the email address
emailtext is a variable that holds the email content
Only the first email gets sent, the code continues to loop with no errors or warnings but does not send any more emails. Also if I run the code again, with the same session of Access open no emails get sent. If I reload Access I will get one email sent.
So the conclusion is that only one email gets sent per session of Access.
Has anyone got any advice?