Welcome to the { mindfrost82.com } forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Microsoft > MS Office > Access

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-07-2008, 04:14 PM
Jason Marino
 
Posts: n/a
Multiple criteria in a query

I am trying to make a query with multiple criteria in it. Every time i
add the second criteria to the line it dosent filter out that criteria.

For example i need to create a query that tells me everybody in an
office with equipment that dosent have a serial number, but i need to
filter out any software or anything that is not hardware.

So i create the query and i s Not "software" and "Office". When i run
the query it does not filter out software or office. How do i fix this.
Keep in mind i did not build the db so the relationships might be a
little crazy. Any help would be great. Thanks
Reply With Quote
  #2 (permalink)  
Old 08-07-2008, 04:31 PM
Al Campagna
 
Posts: n/a
Re: Multiple criteria in a query

Jason,
Try...
Not "Software" and Not "Office"
or
<> "Software" And <> "Office"
--
hth
Al Campagna
Microsoft Access MVP
http://home.comcast.net/~cccsolutions/index.html

"Find a job that you love... and you'll never work a day in your life."

"Jason Marino" <jmarino@mahoneycohen.com> wrote in message
news:uKe8PBK%23IHA.1512@TK2MSFTNGP06.phx.gbl...
>I am trying to make a query with multiple criteria in it. Every time i add
>the second criteria to the line it dosent filter out that criteria.
>
> For example i need to create a query that tells me everybody in an office
> with equipment that dosent have a serial number, but i need to filter out
> any software or anything that is not hardware.
>
> So i create the query and i s Not "software" and "Office". When i run the
> query it does not filter out software or office. How do i fix this. Keep
> in mind i did not build the db so the relationships might be a little
> crazy. Any help would be great. Thanks



Reply With Quote
  #3 (permalink)  
Old 08-07-2008, 04:32 PM
=?Utf-8?B?S2xhdHV1?=
 
Posts: n/a
RE: Multiple criteria in a query

I suggest you repost your question in the Queries group and include the SQL
of the query so someone can evaluate your problem.
--
Dave Hargis, Microsoft Access MVP


"Jason Marino" wrote:

> I am trying to make a query with multiple criteria in it. Every time i
> add the second criteria to the line it dosent filter out that criteria.
>
> For example i need to create a query that tells me everybody in an
> office with equipment that dosent have a serial number, but i need to
> filter out any software or anything that is not hardware.
>
> So i create the query and i s Not "software" and "Office". When i run
> the query it does not filter out software or office. How do i fix this.
> Keep in mind i did not build the db so the relationships might be a
> little crazy. Any help would be great. Thanks
>

Reply With Quote
  #4 (permalink)  
Old 08-07-2008, 06:34 PM
=?Utf-8?B?S2VuIFNoZXJpZGFu?=
 
Posts: n/a
RE: Multiple criteria in a query

For those without serial numbers you need to restrict the results to rows
where:

SerialNumber IS NULL

assuming that the column will be NULL, rather than a zero-length string or 0
of course.

To exclude anything which is not hardware you can use NOT IN(<value list>).

So in the first criteria row of the SerialNumber column enter:

IS NULL

and in the first 'criteria' row of the EquipmentType column enter:

NOT IN("Office", "Software")

Ken Sheridan
Stafford, England

"Jason Marino" wrote:

> I am trying to make a query with multiple criteria in it. Every time i
> add the second criteria to the line it dosent filter out that criteria.
>
> For example i need to create a query that tells me everybody in an
> office with equipment that dosent have a serial number, but i need to
> filter out any software or anything that is not hardware.
>
> So i create the query and i s Not "software" and "Office". When i run
> the query it does not filter out software or office. How do i fix this.
> Keep in mind i did not build the db so the relationships might be a
> little crazy. Any help would be great. Thanks
>


Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Microsoft > MS Office > Access


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 04:23 PM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0


Sponsors:
Free Credit Reports | Internet Advertising | Mortgages | Internet Advertising | Loans



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114