Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 13th, 2012, 11:12 PM
G_S G_S is offline
Registered User
 
Join Date: Nov 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Referencing data from another table to generate SendMail Data Macro

Hi,
I'm new to Access 2010 and Data Macros, so I apologize if the solution is obvious or answered and I'm just not searching the right phrases.
I have 2 tables: Contacts; and Accounts.
The Contacts table has Names, phones, emails, etc.
The Accounts table has many fields and a combo lookup on the Contacts Names (db table relationship is also defined between these two tables).
I would like for an email to generate, that populates the appropriate email contact, when the Accounts table record date field is updated (but allows the user to edit/attach before sending).
I am able to easily write the expression to customize the email Subject Line based on the Accounts table data fields, but I'm having trouble properly referencing the Contacts table and field.

Do I need to use other commands like SetLocalVar or ReturnVars or ???

Any guidance is appreciated.
Thank you





Similar Threads
Thread Thread Starter Forum Replies Last Post
Data Macro to get data from another table Suzie2012 Access 5 April 17th, 2015 09:24 AM
Two data table adapter not created when using data source wizard in VS 2008 sakshismriti Visual Studio 2008 0 November 17th, 2010 01:33 AM
Referencing Data in Subforms avsrule Access 3 December 13th, 2008 07:34 PM
Referencing data on external drive startfarm ASP.NET 2.0 Basics 4 June 9th, 2008 06:20 PM
Datatables - referencing the data in VB Code Juan Patrick Visual Basic 2005 Basics 4 July 2nd, 2007 10:19 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.