N
nybaseball22
Hello. I am trying to create a UNION query out of my current query.
The query is used as a filter for a form after it opens and pulls
input for 2 fields from a form I have open. The SQL for the Query is
below. I want to add an ALL choice to 2 list boxes I have. The list
boxes have my Cars and Actions.
Thank you.
SQL
SELECT [Automobiles - Main Table].Car, [Automobiles - Main
Table].Action, [Automobiles - Main Table].Mileage, [Automobiles - Main
Table].AutoDate, [Automobiles - Main Table].Location, [Automobiles -
Main Table].Cost, [Automobiles - Main Table].Notes, [Automobiles -
Main Table].Problems, [Automobiles - Main Table].Comments
FROM [Automobiles - Main Table]
WHERE ((([Automobiles - Main Table].Car)=[Forms]![AutomobileSearch]!
[CarList]) AND (([Automobiles - Main Table].Action)=[Forms]!
[AutomobileSearch]![EventList]))
ORDER BY [Automobiles - Main Table].Car, [Automobiles - Main
Table].Mileage DESC;
The query is used as a filter for a form after it opens and pulls
input for 2 fields from a form I have open. The SQL for the Query is
below. I want to add an ALL choice to 2 list boxes I have. The list
boxes have my Cars and Actions.
Thank you.
SQL
SELECT [Automobiles - Main Table].Car, [Automobiles - Main
Table].Action, [Automobiles - Main Table].Mileage, [Automobiles - Main
Table].AutoDate, [Automobiles - Main Table].Location, [Automobiles -
Main Table].Cost, [Automobiles - Main Table].Notes, [Automobiles -
Main Table].Problems, [Automobiles - Main Table].Comments
FROM [Automobiles - Main Table]
WHERE ((([Automobiles - Main Table].Car)=[Forms]![AutomobileSearch]!
[CarList]) AND (([Automobiles - Main Table].Action)=[Forms]!
[AutomobileSearch]![EventList]))
ORDER BY [Automobiles - Main Table].Car, [Automobiles - Main
Table].Mileage DESC;