The MS Access website is very unhelpful on this topic, and I cannot
find anything in my Googling to find a hint.
I am working with very large, existing data sets that consist of
multiple fields. Two of the fields are "Origin" and "Destinatio n".
These fields contain the FAA Airport Codes, so the data is similar. I
also have another table with all FAA Airport Codes, corresponding FAA
Airport Categories, and Airport Names.
I need to establish the relationship between the main air travel table
and the airport table. Both the "Origin" and "Destinatio n" must relate
to the FAA Airport Code table. However, when I establish this
relationship and examine the FAA Airport Code table, I get the
equivalent of an "and" function. In other words, the only records in
the subtables are those flights that both originated and terminated at
the SAME airport (aka "sightseein g" flights...) What I need is the
records of ALL flights that EITHER originated OR terminated at the
specified Airport.
All the Microshaft website says is "don't do that".
I am a novice, and any clue would be helpful.
TIA 2 2136
If I understand your application correctly, you need to link to two
separate instances of the codes table. In your query, add a separate
instance of that table. Then link the travel table to the first
instance by the origin code, and to the second one by the destination
code. Then you can create an OR filter using the fields from the two
copies of the codes table.
"PPT33R" <mt*******@usa. com> wrote in
news:11******** **************@ z14g2000cwz.goo glegroups.com: The MS Access website is very unhelpful on this topic, and I cannot find anything in my Googling to find a hint.
I am working with very large, existing data sets that consist of multiple fields. Two of the fields are "Origin" and "Destinatio n". These fields contain the FAA Airport Codes, so the data is similar. I also have another table with all FAA Airport Codes, corresponding FAA Airport Categories, and Airport Names.
I need to establish the relationship between the main air travel table and the airport table. Both the "Origin" and "Destinatio n" must relate to the FAA Airport Code table. However, when I establish this relationship and examine the FAA Airport Code table, I get the equivalent of an "and" function. In other words, the only records in the subtables are those flights that both originated and terminated at the SAME airport (aka "sightseein g" flights...) What I need is the records of ALL flights that EITHER originated OR terminated at the specified Airport.
All the Microshaft website says is "don't do that". I am a novice, and any clue would be helpful.
TIA
I don't know how you are trying to build your joins, but if using
the query builder, try this.
open a new query in design mode. Add the travel table. Add the
airport table twice. Link the link between the Origin field to
one of the two airport tables. Link the Destination field to the
other airoport table.
--
Bob Quintal
PA is y I've altered my email address. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Drew |
last post by:
I have a db table like the following,
UID, int auto-increment
RegNo
Person
Relation
YearsKnown
Now here is some sample data from this table,
|
by: ccr |
last post by:
Please view in a text editor so that the columnar text lines up. I
used Terminal 9pt font to compose this post and copied/pasted to my
newsreader program.
I am writing in the hope that one of you Visual Basic experts may
provide a solution, or at least some insight, to the problem described
below. I am not a programmer, but am fairly knowledgeable about
computers. If necessary, I could flowchart a process to do what needs
to be done....
|
by: ccr |
last post by:
Reposted with a longer line length. Apologies if I did not cancel the 1st attempt before you got
it.
If necessary, please view in a text editor so the columnar text lines up. I used Terminal 9pt font
to compose this post and copied/pasted to my newsreader program.
I am writing in the hope that one of you Visual Basic experts may provide a solution, or at least
some insight, to the problem described below. I am not a programmer, but...
|
by: dskillingstad |
last post by:
I've been struggling with this problem for some time and have tried
multiple solutions with no luck.
Let me start with, I'm a novice at Access and I'm not looking for
someones help to design my database,just help in getting me pointed in
the right direction.
I have a database with 8 tables, which from what I have read, cannot be
linked on a single form, and be updatable. I have created a query
which includes all 8 tables, and then...
|
by: Matthew Louden |
last post by:
I want to know why C# doesnt support multiple inheritance? But why we can
inherit multiple interfaces instead? I know this is the rule, but I dont
understand why. Can anyone give me some concrete examples?
| |
by: HLCruz via AccessMonster.com |
last post by:
I am working with a database that has client information separated in to 4
related tables - tFolder, tAddress, tEmail, tPhone number. In addition there
are related tables tGifts and tCalls. The database has roughly 22,000
records but should only have around 6,000. The remaining records are
duplicates, but in many cases the correct data for one person is spread out
between the duplicate records and related tables. I need to be able to...
|
by: bonneylake |
last post by:
Hey Everyone,
Well recently i been inserting multiple fields for a section in my form called "serial". Well now i am trying to insert multiple fields for the not only the serial section but also the parts section an i seem to be having trouble.
When i try to insert into the parts section i get the error Invalid character value for cast specification. But not sure what i am doing wrong. Here is what i am using to insert. All the sections...
|
by: bonneylake |
last post by:
Hey Everyone,
Well i am not sure if this is more of a coldfusion problem or a javscript problem. So if i asked my question in the wrong section let me know an all move it to the correct place.
what i am trying to display previously entered multiple fields. I am able to get my serial fields to display correctly, but i can not display my parts fields correctly.
Currently this is what it does
serial information 1
parts 1
|
by: MoroccoIT |
last post by:
Greetings -
I saw somewhat similar code (pls see link below) that does mupltiple files upload. It works fine, but I wanted to populate the database with the same files that are uploaded to mydirectory, but for some reason, I am getting different file names on the database.
Here is the full code: please do serach on kewword "database" to see where I added my database code - that where I need help with.
And here the link where I got it...
|
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,...
|
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...
| |
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,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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...
|
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| | |