G
Guest
I know this "subject" has been posted before, but i didn't find this exact
question. I have written some VBA code (in Access 2003) that will open an
outlook application, create an e-mail message, and then send it, but the
message will sit in my outbox until I open outlook again. If outlook is
already visible then the message just goes no problem, but if the last thing
the user does is hit the button that runs my code and then logs off and goes
home for the weekend, then the message doesn't get sent until he logs on on
Monday and opens outlook. I havet ried setting the visible=true property
like you would in Word, but it tells me I can't use that property with
Outlook. Any suggestions?
Our network runs Office 2003 on a Microsoft Exchange Server.
dim OLApp as New Outlook.Application
dim OLMessage as MailItem
set OLMessage = OLApp.CreateItem(olMailItem)
With OLMessage
.To "Address"
.Subject "Subject"
.Body "Body"
.Send
End With
question. I have written some VBA code (in Access 2003) that will open an
outlook application, create an e-mail message, and then send it, but the
message will sit in my outbox until I open outlook again. If outlook is
already visible then the message just goes no problem, but if the last thing
the user does is hit the button that runs my code and then logs off and goes
home for the weekend, then the message doesn't get sent until he logs on on
Monday and opens outlook. I havet ried setting the visible=true property
like you would in Word, but it tells me I can't use that property with
Outlook. Any suggestions?
Our network runs Office 2003 on a Microsoft Exchange Server.
dim OLApp as New Outlook.Application
dim OLMessage as MailItem
set OLMessage = OLApp.CreateItem(olMailItem)
With OLMessage
.To "Address"
.Subject "Subject"
.Body "Body"
.Send
End With