473,385 Members | 1,740 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

How to reference a field in a parent table in a SendEmail macro. Access 2010

I have 2 tables (amongst others). The parent table is called tbl_JobReferences and the other is called tbl_Colours.

The database is used to store the quantity of printing plates in stock. When a printing plate stock reaches zero, a data macro triggers and sends an email to
re-order the plate.

The problem is, the plate's reference number (YR Number)is in the parent table (tbl_JobReferences), as all the plates in a family has the same number, but I cannot reference this table within the body of my email. I keep getting the error

"The identifier '[tbl_JobReferences].[YR Number]' could not be found."

Is there anyway to get this related field into the body of my email?
Jun 24 '12 #1
2 2000
twinnyfo
3,653 Expert Mod 2GB
Please list the fields in your two tables and how they are related. There should be a many-one relationship between them so that the tables are properly related. This is where you must start.
Jul 25 '12 #2
Sorted. I set up a macro on a form instead of the table. This allowed me to add the YR Number to a sendEmailObject. Thanks.
Jul 25 '12 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Marco Simone | last post by:
Hi, What is your opinion about using Lookup field in table. I would like to use lookup field in table 1, so that I can choose data in combo box from table 2. Is this good design of database? ...
4
by: bdockery | last post by:
Access 2007 I have a table with three columns. Country, State, City What I want to do is have a form where the Country, and State, lookups auto-populate when the city lookup is chosen. It...
4
by: kcopson | last post by:
I need a routine to add a new field to an existing table in a database that is in another town. Situation: I maintain a database with 10 copies in different offices. Everytime we want to make a...
11
by: nbomike | last post by:
Hello. Can someone tell me a good way to reference a parent table from only some of the records of the child table? I know that this is breaking referential integrity, but I'm not sure how to go...
6
by: jan.schaak | last post by:
hi, this is my sql code. -----start code----- SELECT Reeksen.ReeksNR, Reeksen.ReeksText, Count(Strips.Titel) AS NBTitel, (SELECT Count(strips.Titel) AS AantalVanTitel FROM (Reeksen INNER...
2
by: sierra7 | last post by:
It seems Access 2010 is associating an 'input mask' or field type with a combo box when a form is opened, even though there is no Format setting on the control. I have a form which has been...
1
by: Alan Yim | last post by:
Hi folks, My company recently upgraded our Office suite from 2003 to 2010. The problem in particular is with an Access database that was originally designed in Access 2003. The code in question...
0
by: Cees | last post by:
how to circumnavigate the message 'package' when embedding bmp-image in an Access 2010 table
0
by: Garry Perry | last post by:
I have a login form to capture user info and I want to load Nav form filtering the data using the TempVars on form load. I need a dynamic query and the web queries don't allow you to do much. I am...
1
by: Music Man | last post by:
Greetings All: I built a database in Microsoft SQL Server 2000 and used Microsoft Access 2010 as the front end. The database is used to keep track of "issues" that rise out of my employment. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.