473,324 Members | 2,196 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,324 software developers and data experts.

Relationship - Tables

Hi,

I need your help. I created a relationship on four tables. It
works nicely. Each table has a code type.
Group A Table
--- Field Name: Code Type "T"

Group B Table
--- Field Name: Code Type "V"

Group C Table
--- Field Name: Code Type "C"

Group D Table
--- Field Name: Code Type "D"

tbl_CodeType
--- Field Name: Type
--- Field Name: Result
--- Field Name: RelatedType

I create a query and select three tables (Group A, Group B and
tbl_CodeType). In one query, I set a link Group A: Code Type to
[tbl_CodeType].TYPE and also set a link Group B: Code Type to
[tbl_CodeType].RELATEDTYPE. I want to set the combo by selecting
two fields "T" and "V" from two tables and get the output from
tbl_CodeType: Field Name: Result. The result is that I am getting
error.

I would be more happy if you give me some help to make it work.

Thanks a million.

Oct 24 '07 #1
1 1404
le************@hotmail.com wrote:
Hi,

I need your help. I created a relationship on four tables. It
works nicely. Each table has a code type.
Group A Table
--- Field Name: Code Type "T"

Group B Table
--- Field Name: Code Type "V"

Group C Table
--- Field Name: Code Type "C"

Group D Table
--- Field Name: Code Type "D"

tbl_CodeType
--- Field Name: Type
--- Field Name: Result
--- Field Name: RelatedType

I create a query and select three tables (Group A, Group B and
tbl_CodeType). In one query, I set a link Group A: Code Type to
[tbl_CodeType].TYPE and also set a link Group B: Code Type to
[tbl_CodeType].RELATEDTYPE. I want to set the combo by selecting
two fields "T" and "V" from two tables and get the output from
tbl_CodeType: Field Name: Result. The result is that I am getting
error.

I would be more happy if you give me some help to make it work.

Thanks a million.
You can use TOP to get the top 2 records. And you might want to do a
UNION query.
Select * From Table1 Where Type = "A"
UNION ALL
Select * From Table2 Where Type = "B"

I don't know if the above addresses your situation.
Oct 24 '07 #2

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

Similar topics

0
by: Alcyone Oliveira | last post by:
------=_NextPart_000_000D_01C36572.F6480CE0 Content-Type: multipart/alternative; boundary="----=_NextPart_001_000E_01C36572.F6480CE0" ------=_NextPart_001_000E_01C36572.F6480CE0 Content-Type:...
4
by: H Cohen | last post by:
Hi, I have a corporate database with about 60 different tables that spans manufacturing, accounting, marketing, etc. It is possible, but unwieldy, to establish a relationship for each table...
2
by: Steve | last post by:
How do I delete a relationship between tables in SQL Server 7.0? I previously had a relationship between two tables, but I renamed the field and table of one of the tables and the old...
8
by: Andante.in.Blue | last post by:
Hello, I have just inherited a legacy Access 97 database. While going through it, I noticed something strange... its Relationships window (the one accessed by Tools --> Relationships) is almost...
2
by: Marco Simone | last post by:
Hi, I have 4 tables, tblCompany, tblA, tblB and tblC. tblA, tblB and tblC contain same type of data, they should be in one table, but since there are many fields, I split it into 3 tables. Each...
5
by: BrianDP | last post by:
This is a strange one-- I have an Access 2K database with a split front end/back end. There are two tables in the back end - RFile and RLine. There is a one to many relationship from...
10
by: Richard | last post by:
Hi folks, thanks for taking the time to read this (and hopefully point our where I'm going wrong). The scenario: I have a local Access2007 database which links in several read only mySql...
11
by: RobertJohn | last post by:
Hi all I am using Access 2007 to start a small home library application, and so far it has two tables. 1. Books, with fields Book_ID (Primary Key) and Title, and 2. Authors, with fields...
4
by: Phil Stanton | last post by:
Having spent ages sorting out the layout of my relationship window with about 60 tables and getting it all tidy and with enough of the tables visible to show the PK an FK relaionshipsOn a subseqent...
6
by: NicoleCartrette | last post by:
Going back to school is easier said than done.. This was posted to an older thread earlier but I don't think it got any attention. Your help is appreciated Professor requires we create a...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.