Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Email in Access

Posted on 2013-01-28
1
Medium Priority
?
262 Views
Last Modified: 2013-01-29
It would be awesome if someone could help me with this. If I need to break it up into more questions, I will.

Ultimately what I am looking for is a button that will send an email through outlook to a client about their children.

Attached I have a Microsoft Access database… when you click the button “OC” in the top right, it will open a form…. Saved “MemoFormOC”

I am looking for a button on this page that will do the following:
1.)      Open another form were we can enter the kids names and ages entering onto the “MemoChildren” table
2.)      Click a button that will send the email that is attached in word.

 Also… there is a field in the email that is “CoachesBioLink”. This is from the table InstructorBio. Depending on who the instructor is on the first form, will determine what link this is too.

One more thing... if possible can the subject of the email say "What <SWIMMER> will learn in swim lessons"?
Practice-for-Email.mdb
Orange-Octopus-Letter.docx
0
Comment
Question by:cansevin
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 85

Accepted Solution

by:
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 2000 total points
ID: 38829463
This is more like a project request than a request  for help ...

To open a form, use code like this:

Docmd.OpenForm "MemoFormOC"

If you need to pull data for emails, you can do it in several ways. For example, you can open a Recordset to get information:

Dim sEmail As String
Dim rst As DAO.Recordset

Set rst = Currentdb.OpenRecordset("SELECT * FROM SomeTable")

sEmail = rst("SwimmerName") & " - Thanks for contacting us today. We'll send you some information at your address below:" & vbCrLf &  vbCrLf & rst("Street") & vbCrLF & rst("City") & ", " rst("State") & "  " & rst("Zip")

To send an email you can  use SendObject:

DoCmd.SendObject acSendNoObject, , ,  rst("Email"), , , "What " & rst("SwimmerName") & " will learn", sEmail


http://msdn.microsoft.com/en-us/library/office/ff197046.aspx
0

Featured Post

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question