473,387 Members | 1,844 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,387 software developers and data experts.

Query - How to filter criteria from tables

anoble1
245 128KB
See picture.
I have some fields under criteria I would like to show. Example I would like this query to pull all part numbers in these 3 tables on this main query. What am I missing or how can this be done?

How can i make this query show all the records in all those tables? Each table has about 15 records (15 part numbers)

Attached Images
File Type: png 2020-01-21 07_42_35-Window.png (9.7 KB, 359 views)
Jan 21 '20 #1
3 1344
NeoPa
32,556 Expert Mod 16PB
Perhaps you could rephrase the question so that it makes clearer sense?

I gave up trying to work out what you should have said after the first couple of tries left me scratching my head.
Jan 21 '20 #2
Rabbit
12,516 Expert Mod 8TB
I'm confused as well, the title says you want to filter the tables, but then you say you want to show all the records. You can't do both. If you want to show all the records, then don't filter anything.
Jan 21 '20 #3
twinnyfo
3,653 Expert Mod 2GB
anoble1,

I think what you need is a UNION Query, which will list all the Parts from each Table. For example,

Expand|Select|Wrap|Line Numbers
  1. SELECT PartNo, PartDesc FROM Table1 
  2. UNION ALL 
  3. SELECT PartNo, PartDesc FROM Table2 
  4. UNION ALL 
  5. SELECT PartNo, PartDesc FROM Table3 
  6. GROUP BY PartNo, PartDesc 
  7. ORDER BY PartNo;
[the GROUP BY clause will consolidate any duplicate parts]

Also, this is just a guess, and we have no idea what your Tables are about (or their relationships).

Don't know if this hepps a who' heap or just confuses matters more.
Jan 22 '20 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Chris Geihsler | last post by:
I have a set of udf's dealing that return a one column table of values parsed from a comma delimeted string. For example: CREATE FUNCTION . ( @patient_list varchar(2000) ) RETURNS...
1
by: Colin | last post by:
I created a macro that starts a filter on a query. The criteria in the query is: Like & "*" The macro is initiated by pressing a command button on the form. This works fine. However, when...
1
by: Carl B Davis | last post by:
Help please!!! I am an intermediate access user that is getting my bottom kicked by what seems an easy problem to fix. I maintain an employee database at work. I have set up a query from two tables...
2
by: Bernd Smits | last post by:
Hi, I have to create a query which would be composed of two tables, which have a common field ('FileName'). Now, the query have to be composed of the record who suddisfy to the following...
2
by: tjdoss | last post by:
I am trying to display the "Filter by Form" criteria in a Report (that displays the filtered information). I have an unbound textbox with !. as the control source that will give me the Filter itself...
2
by: sharsy | last post by:
Hello, I have a Database setup that has two tables that are linked. Table1 contains a list of people with their basic contact details (name & phone number etc.) and Table2 contains a list of all...
0
by: maxpirate | last post by:
I am trying to show list data from sub webs on the site collection. But when i try to set filter criteria some comparators like less than, greater than, less than or equal to and greater than or...
1
by: John S | last post by:
I would like to use a Combo Box at the top of a sheet to set the filter criteria in a table in excel. Currently this defeats me ... easy in Access .. not so in Excel. Anyone point me in the right...
9
LeighW
by: LeighW | last post by:
Hi all, I'd like a cover page that shows which filter criteria have been used when creating the report. If this can't be done/ is very hard to implement then I'll leave it be but I thought it...
3
by: Coolbreeze | last post by:
Hi, I have specified form textbox data as query filter criteria,and since then, every time I run the query, the criteria are self duplicating on random lines below the original. Also, there seems to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.