Here is the SQL code.
SELECT [General Contractors Master List].[General Contractor], [General
Contractors Master List].AL, [General Contractors Master List].AZ,
[General
Contractors Master List].AR, [General Contractors Master List].CA,
[General
Contractors Master List].CO, [General Contractors Master List].CT,
[General
Contractors Master List].DE, [General Contractors Master List].DC,
[General
Contractors Master List].FL, [General Contractors Master List].GA,
[General
Contractors Master List].HI, [General Contractors Master List].ID,
[General
Contractors Master List].IL, [General Contractors Master List].[IN],
[General
Contractors Master List].IO, [General Contractors Master List].KS,
[General
Contractors Master List].KY, [General Contractors Master List].LA,
[General
Contractors Master List].ME, [General Contractors Master List].MD,
[General
Contractors Master List].MA, [General Contractors Master List].MI,
[General
Contractors Master List].MN, [General Contractors Master List].MS,
[General
Contractors Master List].MO, [General Contractors Master List].MT,
[General
Contractors Master List].NB, [General Contractors Master List].NV,
[General
Contractors Master List].NH, [General Contractors Master List].NJ,
[General
Contractors Master List].NM, [General Contractors Master List].NY,
[General
Contractors Master List].NC, [General Contractors Master List].ND,
[General
Contractors Master List].OH, [General Contractors Master List].OK,
[General
Contractors Master List].[OR], [General Contractors Master List].PA,
[General
Contractors Master List].RI, [General Contractors Master List].SC,
[General
Contractors Master List].SD, [General Contractors Master List].TN,
[General
Contractors Master List].TX, [General Contractors Master List].UT,
[General
Contractors Master List].VT, [General Contractors Master List].VA,
[General
Contractors Master List].WA, [General Contractors Master List].WV,
[General
Contractors Master List].WI, [General Contractors Master List].WY
FROM [General Contractors Master List];
If I have a list of 25 vendors and all 50 states listed as column headers,
and if a vendor works in that state, there is a "Y" in the field, I want
to
be able to have a parameter set where I can type TX and it shows all
vendors
who have "Y" in the TX column. Then be able to run the query again with a
different state and it pull the information without having to go into the
query and change scroll through the states and put "y" as my criteria.
Does that make sense?
-Brandi
Tom Ellison said:
Dear Jacqua:
The way to write this query depends not only on what you want it to
produce,
but also on from what you want it to be produced. You haven't said
anything
at all about the source of the information. Unless you do so, and in
some
detail, it's not likely anyone can guess how to help you.
If the results you posted were from a query, you might start by posting
the
SQL code of that query.
Tom Ellison