Querying more than 1 selection criteria in a group

C

chris M

This is a repost, unfortunately I posed this question about an hour ago and
it still wasn't listed, so here it goes again. I am trying to do this in a
QBE query screen. I have a field in my table called "FORM LETTER". The
results/data elements in this field are A thru L. In the QBE screen, I want
to put in the
criteria row(S) a select(ion) statement that allows for letters a thru d as
one group, OR j, K, and L for another group, and/or G,H, and I for a third
group. I want to be able to select just one group at a time. If i put in a
"j" or "K" or "L" it works fine, but I want the choice to select the group
in a dialog box so as to not have to design a multidude of reports/queries.
Thank you, chris
 
J

Jerry Whittle

The best way to do this is to create an new table called something like
ResultGroups. This table would have at least two columns: FORM_LETTER_ID (the
primary key) with a letter A, B, C, etc., in each record and another Groups
field with the matching 1, 2, 3, 4 in it. Add this table to the query and
then have the Group as the criteria in a parameter query.

Using a fancy self-join, someone could even put in A at the parameter and
get the entire group without knowing at A is in Group 1.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top