The form you will need to list all these parameters will be massive in
itself. How are you going to fit them all on one form?
Here's my suggestion. For each parameter use a list box on the form
that is populated with the various instances of data in your tables
sql= select distinct color from tbl_Cars where COLOR is not null
Then you can avoid selection of colors that don't exist in your data
set. Do that for each parameter of your search.
What you have all the required parameters selected then use BASIC to
build your query "where" clause.
strWhere = ""
If listbox_Color is not null then
if strWhere = "" then
strWhere = "WHERE COLOR = "contents of listbox_Color"
else
strWhere = " AND COLOR = "contents of listbox_Color"
end if
end if
Just keep appending each populated parameter onto the end of strWhere.
When you finish building your WHERE clause you paste it onto the end of
your SQL query"
strSQL = "Select * from tbl_Cars " & strWhere & ";"
if you have multiple tables your will have to use joins and specify the
table names as well as the field names in your WHERE clause.