With the help of a coworker, we finally got what I'm trying to obtain with SQL to work on Access. The problem that I don't understand is, why is it that if I switch my first and second symbol around, I get more results one way and less the other way? Shouldn't they be equal?
Code:
SELECT DISTINCT Database.Description, Database.[Part Number], Database.Manufacturer, Database.Symbol, Database.[Job Number], Database.File, Database.Directory
FROM [Database]
WHERE ( Symbol like '*' + [Enter First Symbol] + '*')
and Database.[Job Number] is not null
and Database.[Job Number] in (
SELECT DISTINCT Database.[Job Number]
FROM [Database]
where
( Symbol like '*' + [Enter Second Symbol] + '*')
and Database.[Job Number] is not null
);
Also, when I run this, I only see all the filtered results based on what I was prompted to enter at the [Enter First Symbol], while I was thinking that it should show the results of both prompt windows. To solve this, I am thinking that I could simply trim my code from above to only have a SELECT value of Database.[Job Number] only, and use those returned results in a inner join fashion to show me all lines that meet have the Database.[Job Number] from the first query with the two entered symbols. Would this be the most optimal way to do this?