Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Year Range Query?

Status
Not open for further replies.

drace1111

Technical User
Mar 24, 2003
47
US
I have a table that lists hitch applications for motor vehicles. The vehicles are listed by "make", "model", "year from", and "year to". I want to create a query that can pull all models of a chosen make that fall between and include "year from" and "year to". IOW, by choosing a specific year, only car models made during that year would be available. Can this be done using the fields that I have, or do I need to modify the table?

Thanks for any help.
 
So like

SELECT make, model FROM tblVehicle
WHERE YearFrom <= [intYearValue] AND YearTo >= [intYearValue]



'ope-that-elps'


G LS
spsinkNOJUNK@yahoo.co.uk
Remove the NOJUNK to use.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top