Re: Running a Query to Obtain One of Multiple Values in a Field

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



lah5240@xxxxxxxx wrote:
I have a contact database which includes a field for category to
organize the contacts into correct groups for an email list.

The problem I am having is that when I try to sort or query to pull up
a specific category is that the people who belong to more than one
category (for example in the field it would read BZ, DW or something
along those lines) and when I filter or query it will not include any
of the people that have these multiple values, it only returns people
with just that one cateogry grouping.

My question is whether or not there is a formula or notation I can use
so that it will pull up any field that contains BZ or DW, etc. so I
can get a complete return of everyone belonging to that group, even if
they belong to another one as well.

I've been scratching my head for days on this one so any ideas or help
would be much appreciated! Thanks! :)

One should never store more than one value in a field. You are experiencing one
of the reasons for that rule.

You should have another related table (one to many relationship).

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com


.



Relevant Pages

  • Running a Query to Obtain One of Multiple Values in a Field
    ... organize the contacts into correct groups for an email list. ... The problem I am having is that when I try to sort or query to pull up ... they belong to another one as well. ...
    (microsoft.public.access.queries)
  • Re: LDAP Query Search Help in AD 2003
    ... Should be a fairly expensive query though. ... > I am able to get it to list all members not in one group, ... > belong to group A or group B. You see, they need to belong to one or the ... >>> Exchange Mailbox Recipients who do not belong to either Distribution ...
    (microsoft.public.windows.server.active_directory)
  • Re: Hundreds of columns, index on all of those.
    ... Scalability would not be so good, if there would be separate tables ... And the performance problem (related to the query) might still exist ... First fetch a set of Item IDs. ... Different Items can belong to one group. ...
    (comp.databases)
  • Re: Top Ten PHP Security Hole
    ... For example, in the above case, only 2 records are belong to ... And if the user2, manipulate the url like ... I avoid this issue with the query like (so that he can delete his ...
    (comp.lang.php)
  • Query needs tables switched
    ... More than one person can belong to one organization. ... When I make a query it always ... FROM tblLUBillTo INNER JOIN tblLUBillToContact ON ...
    (microsoft.public.access.queries)