G
GrantM
Hypothetically, let's say I have a table with 26 fields, A-Z. I want to
create a query that will select fields "A", "B", and "C", and filter records
based on a fourth field. However, I want this fourth field to be dynamic,
such that it can be any one of the fields D-Z, to be chosen by a control on a
form (i.e. a combo box). Once the field is selected, I want to be able to
filter records such that only those records with a value greater than a
certain number (specified on the same form as the field) are returned.
Is it possible to design a query such that one of the fields chosen for that
query can vary depending on the value of a control on a form? I have
another, brute-force idea how to do this, but that would require creating a
different query for all the fields D-Z, and I have to think that there is a
better way of doing this.
Thanks for any help!
-G
create a query that will select fields "A", "B", and "C", and filter records
based on a fourth field. However, I want this fourth field to be dynamic,
such that it can be any one of the fields D-Z, to be chosen by a control on a
form (i.e. a combo box). Once the field is selected, I want to be able to
filter records such that only those records with a value greater than a
certain number (specified on the same form as the field) are returned.
Is it possible to design a query such that one of the fields chosen for that
query can vary depending on the value of a control on a form? I have
another, brute-force idea how to do this, but that would require creating a
different query for all the fields D-Z, and I have to think that there is a
better way of doing this.
Thanks for any help!
-G