I have 3 tables I need to get data from but I know I’m doing this wrong. Table 1 has the list of all my contacts (ID, name, address, etc). Table 2 has records for contacts that had transactions in 2000 only (ID, name, total). Table 3 has records for contacts that had transactions in 2001 only (ID, name, total). I want to create a query/report that lists ALL contacts who had transactions in either 2000 or 2001, but the simple query I made is only picking up contacts who had transactions in both years. The three tables are linked by an ID field. HELP please??
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Query doesn’t pull up all records (2002)
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Query doesn’t pull up all records (2002)
- This topic has 6 replies, 6 voices, and was last updated 23 years ago.
AuthorTopicWScatzbelize
AskWoody LoungerApril 26, 2002 at 9:08 pm #370164Viewing 2 reply threadsAuthorReplies-
WSkmedgyes
AskWoody Lounger -
WSFrancois
AskWoody Lounger -
WStberndt
AskWoody LoungerApril 26, 2002 at 10:14 pm #584824Cat,
Here’s how you can do this. Design a new query. Add Table 1 to the QBE grid. Then add Table 2 and Table 3. Join the tables using ID.
Now, doubl;e-click on the join lines. When the dialog box comes up, select either 2 or 3. Which one? The one that makes an arrow going from Table 1 to Table 2 (and to Table 3 for the other).
Bring the ID field from Table 1 to the bottom half of the QBE grid. Do the same for the ID field of Table 2 and Table 3.
Click on the Totals button (Greek Sigma, or funny looking capital E). Under Table 1’s ID field, leave Group By as Group By. Under Table 2’s ID, change Group By to Where. Under Table 3’s ID, change Group By to Where.
In the Condition cell under Table 2’s ID, type in Is Not Null. For Table 3’s ID, go over one and down one and type in Is Not Null. These conditions must be on separate rows to get the correct results.
Run the query. Your results should be contacts – OK, their ID’s – who had transactions in 2000 (Table 2) or 2001 (Table 3) or both years.
HTH,
Tom
-
WSpatt
AskWoody LoungerApril 26, 2002 at 11:00 pm #584829What Tom suggests will show those which had transations in 2000 or 2001 or both years.
If you want to show just those which have transactions in 2000 or 2001 (but not both) then go to Tom’s query and put “Is Null” under “Is Not Null” under Table 2’s ID field and put “Is Null” above the “Is Not Null” under Table 3’s Id field.
HTH
Pat -
WScatzbelize
AskWoody Lounger -
WScharlotte
AskWoody Lounger
-
-
Viewing 2 reply threads -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
You can’t handle me
by
Susan Bradley
1 hour, 34 minutes ago -
Chrome Can Now Change Your Weak Passwords for You
by
Alex5723
2 hours, 32 minutes ago -
Microsoft: Over 394,000 Windows PCs infected by Lumma malware, affects Chrome..
by
Alex5723
3 hours, 39 minutes ago -
Signal vs Microsoft’s Recall ; By Default, Signal Doesn’t Recall
by
Alex5723
3 hours, 51 minutes ago -
Internet Archive : This is where all of The Internet is stored
by
Alex5723
4 hours, 3 minutes ago -
iPhone 7 Plus and the iPhone 8 on Vantage list
by
Alex5723
4 hours, 8 minutes ago -
Lumma malware takedown
by
EyesOnWindows
11 hours, 22 minutes ago -
“kill switches” found in Chinese made power inverters
by
Alex5723
12 hours, 56 minutes ago -
Windows 11 – InControl vs pausing Windows updates
by
Kathy Stevens
12 hours, 50 minutes ago -
Meet Gemini in Chrome
by
Alex5723
16 hours, 55 minutes ago -
DuckDuckGo’s Duck.ai added GPT-4o mini
by
Alex5723
17 hours, 4 minutes ago -
Trump signs Take It Down Act
by
Alex5723
1 day, 1 hour ago -
Do you have a maintenance window?
by
Susan Bradley
12 hours, 12 minutes ago -
Freshly discovered bug in OpenPGP.js undermines whole point of encrypted comms
by
Nibbled To Death By Ducks
3 hours, 15 minutes ago -
Cox Communications and Charter Communications to merge
by
not so anon
1 day, 4 hours ago -
Help with WD usb driver on Windows 11
by
Tex265
1 day, 9 hours ago -
hibernate activation
by
e_belmont
1 day, 13 hours ago -
Red Hat Enterprise Linux 10 with AI assistant
by
Alex5723
1 day, 17 hours ago -
Windows 11 Insider Preview build 26200.5603 released to DEV
by
joep517
1 day, 20 hours ago -
Windows 11 Insider Preview build 26120.4151 (24H2) released to BETA
by
joep517
1 day, 20 hours ago -
Fixing Windows 24H2 failed KB5058411 install
by
Alex5723
16 hours, 16 minutes ago -
Out of band for Windows 10
by
Susan Bradley
2 days ago -
Giving UniGetUi a test run.
by
RetiredGeek
2 days, 7 hours ago -
Windows 11 Insider Preview Build 26100.4188 (24H2) released to Release Preview
by
joep517
2 days, 15 hours ago -
Microsoft is now putting quantum encryption in Windows builds
by
Alex5723
11 hours, 16 minutes ago -
Auto Time Zone Adjustment
by
wadeer
2 days, 19 hours ago -
To download Win 11 Pro 23H2 ISO.
by
Eddieloh
2 days, 17 hours ago -
Manage your browsing experience with Edge
by
Mary Branscombe
17 hours, 7 minutes ago -
Fewer vulnerabilities, larger updates
by
Susan Bradley
1 day, 10 hours ago -
Hobbies — There’s free software for that!
by
Deanna McElveen
10 hours, 45 minutes ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.