473,586 Members | 2,678 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Query Help: Mutiple Relationships

Hello. Looking for some tips, tricks or help in addressing the following issue.

Table 1 has two columns, A and B. Column A is the Key ... column B is the name-value.

Table 2 has many rows and has 10 Columns. Each column contains a value which I need to look against Table 1 Column A and retrieve the Table 1 Column B name-value.

And I cannot seem to do this without laborious and repeated queries. Any tricks?
Jun 21 '06 #1
2 1018

Buster Chops wrote:
Hello. Looking for some tips, tricks or help in addressing the following issue.

Table 1 has two columns, A and B. Column A is the Key ... column B is the name-value.

Table 2 has many rows and has 10 Columns. Each column contains a value which I need to look against Table 1 Column A and retrieve the Table 1 Column B name-value.

And I cannot seem to do this without laborious and repeated queries. Any tricks?


so you're joining table 1 to table 2 on multiple fields? Not much to
it. Add Table2 to the QBE grid, then add multiple copies of Table1
then join as you need to. (PK--FK). Then drop in your fields you want
to show (the name-value). you'll have to alias the lot, though...

Jun 22 '06 #2
"Buster Chops" wrote
Table 1 has two columns, A and B. Column
A is the Key ... column B is the name-value. Table 2 has many rows and has 10 Columns. Each
column contains a value which I need to look against
Table 1 Column A and retrieve the Table 1 Column B
name-value.


Piet's reply tells you how to do this with your current design, but almost
certainly your design should be "normalized " to comply with relational
database design principles. It appears you have 10 Columns, each
representing the same type of information. If those were each separate Rows
(Records, in Access Terms), you could simply query to find what Key values
have a particular name-value. As it is, such a question is likely to require
a laborious query structure to answer.

Larry Linson
Microsoft Access MVP

And I cannot seem to do this without laborious and repeated queries. Any
tricks?
Jun 22 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
2032
by: sheree | last post by:
I have 3 tables (amoung a few others) in a small access database. The tables are as follows: == AEReport -------- AEID (PK) RptCatelog GCRCID PatientID EvntDate
4
2062
by: d.p. | last post by:
Hi all, I'm using MS Access 2003. Bare with me on this description....here's the situation: Imagine insurance, and working out premiums for different insured properties. The rates for calculating premiums are dependant on the country in which the client is in. Therefore, we have a Country table, with its list of rates, a client table and...
0
1855
by: leavandor | last post by:
I am trying to design a query that works with a relationship between a Table and a Query. I am comparing a value in the table with a computed value inside the query. The reason for this is that the Query calculates a field to become identical to the corresponding table field, for instance: Table 1 contains field "ID", which is WV008A00...
4
1500
by: Tom & Carol Satran | last post by:
Hi I am new to this group and to access. I am trying to make a database for a NFP Youth Organization. We have mutiple home teams, visiting teams, and sites. I have the following in a before update event procedure. It isn't working though and I am not sure why. Could someone please help me? Private Sub Form_BeforeUpdate(Cancel As...
4
2202
by: Raj | last post by:
Hi all, I have couple of questions some one plzz help 1.I have a query which run for 2 hours on my production machine, it returns 1.5 millon rows, i looked at the explain plan it is picking up the indexes on big table. The query joins 5 tables ( 1 has 30 million records 4 other tables have less than 100000) i see the cost at each step is...
0
1987
by: plaidthermos | last post by:
hello, i have a database where there is a main table, documents, and then a relationship table doc_topics with one entry for each topic into which a document falls. (any document may have an arbitrary number of topics, but always at least one.) this structure is repeated for other relationships such as doc_states, doc_types, et cetera. i...
7
2261
by: J-P-W | last post by:
Hi, in the past I've spent ages writing VB routines to get around this problem, is there a simple way? I have three tables for a membership system: tblMembership - MembershipNumber; Names etc tblMembershipSubsHeader - "AmountDue" ; whether the pay by standing order and so on tblMembershipSubs - PaymentYear ; DatePaid; AmountPaid
23
2427
by: mforema | last post by:
Hi everybody, I need to create a query that will search based on keywords and major categories. My tables are set-up as follows: tblLiteratureArticles: Abbreviation(FK) ArticleID(PK) Author Title etc... tblArticleKeyword (Join Table btn tblLiteratureArticles & tblKeywords)
6
4388
by: jsacrey | last post by:
Hey everybody, got a secnario for ya that I need a bit of help with. Access 97 using linked tables from an SQL Server 2000 machine. I've created a simple query using two tables joined by one field between them. The join field in both tables are indexed and I'm selecting 1 field from each table to lookup. The Access query is taking more...
0
7912
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...
0
7839
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...
0
8202
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. ...
1
7959
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...
0
6614
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...
1
5710
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5390
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...
1
1449
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1180
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...

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.