T
Titlepusher
I need to use a field name as a variable in a query.
I have a table "Contractor List table" with forty-some Yes/No fields titled
by County names. (field 6 name = Hamilton, field 7 name = Johnson, etc...)
(the first 5 fields are the contractor name, phone, address, etc)
A form contains a drop down with the field names of the table. I want to
design a query to show records where [form..drop down] = -1 (yes). The
purpose is to find contractors who will work in a specific county.
So, to restate I want to query like .. if "field name" = -1 then show all
records.
I thought I could do this, but cannot make the query work. Any help is
appreciated.
Thank you,
tp
I have a table "Contractor List table" with forty-some Yes/No fields titled
by County names. (field 6 name = Hamilton, field 7 name = Johnson, etc...)
(the first 5 fields are the contractor name, phone, address, etc)
A form contains a drop down with the field names of the table. I want to
design a query to show records where [form..drop down] = -1 (yes). The
purpose is to find contractors who will work in a specific county.
So, to restate I want to query like .. if "field name" = -1 then show all
records.
I thought I could do this, but cannot make the query work. Any help is
appreciated.
Thank you,
tp