Microsoft Access Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMicrosoft Access Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old August 6th, 2004, 01:17 PM
glosrob glosrob is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 1 glosrob User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question Sending email from within Access??

I am developing a small database at work and was after some help if anyone could oblige!

Currently we store the usual information on clients - name, address, email etc. My query is that
is there anyway of opening Outlook (or similar) with an email address already in the 'To:' and a
subject in the 'Subject:' part of the email. Or is there anyway of writing and sending an email
from within Access? Currently I am just using a RunCommand to open Outlook and it is tiresome
to have to flick between Outlook and Access to write the email address.

Cheers!

Rob

Reply With Quote
  #2  
Old August 6th, 2004, 09:47 PM
ineuw ineuw is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 82 ineuw User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 30 m 28 sec
Reputation Power: 5
Install the Outlook reference library and use Acces to generate emails by Outlook. I have done this many times. Search the MS website for sample code.

Reply With Quote
  #3  
Old August 9th, 2004, 06:12 AM
adjones1980 adjones1980 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 2 adjones1980 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Originally Posted by glosrob
I am developing a small database at work and was after some help if anyone could oblige!

Currently we store the usual information on clients - name, address, email etc. My query is that
is there anyway of opening Outlook (or similar) with an email address already in the 'To:' and a
subject in the 'Subject:' part of the email. Or is there anyway of writing and sending an email
from within Access? Currently I am just using a RunCommand to open Outlook and it is tiresome
to have to flick between Outlook and Access to write the email address.

Cheers!

Rob

activate the outlook reference library and do look at the following for guidance:

Dim myOlApp as object
Dim myEmail as outlook.mailitem

Set myOlApp = CreateObject("Outlook.Application")
Set myEmail = myOlApp.CreateItem(olMailItem)

With myEmail
.To = Me.EmailAddress
.Subject = "This is an email"
.Body = "Type email here"
End With
myEmail.Display




Hope this helps
Andy

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMicrosoft Access Development > Sending email from within Access??


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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 On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT