473,658 Members | 2,623 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

37 New Member
I have 2 tables (amongst others). The parent table is called tbl_JobReferenc es 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_JobReferen ces), 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_JobReferenc es].[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 2010
twinnyfo
3,653 Recognized Expert Moderator Specialist
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
Corwin Moyne
37 New Member
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
3237
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? Thanks in advance, Marco
4
3657
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 seems like this would be easy. I'm just trying to figure out what exactly the syntax is to reference a field out of a table.
4
3185
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 change or addition to a table's structure, someone has to physically go out to each office and make the change. Each database copy has it's own unique data, with tables links to other tables within the database, so we can't just simply send a new...
11
1850
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 about this problem. I have a table representing a light bulb entity, and I want it to link to a products table (for an ecommerce site) only some of the time. So there's a "bulb" table that has a foreign key column named "product_id", which is also...
6
1292
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 JOIN Strips ON Reeksen.ReeksNR = Strips.ReeksNR) INNER JOIN Pictures ON Strips.Uniek = Pictures.Uniek where reeksen.ReeksNR=11) AS AantalPic
2
6706
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 running OK for years in Access 2003; it adds an item selected from an inventory listing to either an existing Sales Order or Purchase Order. For historic reasons Purchase orders are alphanumeric and Sales orders are numeric (long integer). The RowSource...
1
5249
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 used work in 2003 (see below code). Private Sub engSave_Click() Dim strSql3 As String 'Archive order number and cost data for engine.
0
1478
by: Cees | last post by:
how to circumnavigate the message 'package' when embedding bmp-image in an Access 2010 table
0
1748
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 looking for solutions to filter my forms on load or cbos on afterupdate.
1
3428
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. I've been there a long time and now feel the need to start documenting certain occurances. I have 4 tables, one of which is a table called fileattachments. I'm storing the path to the files in this table and the actual files are stored in a directory...
0
8427
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8330
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8850
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8523
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7355
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5649
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2749
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1975
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1737
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.