Re: Criteria
From: idontgetit (idontgetit_at_discussions.microsoft.com)
Date: 03/14/05
- Next message: Paul McC: "Convert days like 2nd Monday or 4th Thursday to a Date"
- Previous message: PC Datasheet: "Re: Creating a Keyword Query"
- In reply to: John Vinson: "Re: Criteria"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 14 Mar 2005 11:35:02 -0800
Thank you very much for your help, however it's not working for me and I'm
not a computer goo roo at this stuff so thanks for being patient with me.
When I type in "In ([Store #?])" in the criteria, it will ask me for the
store # which is good, but I want it to let me type in a couple store
numbers. I tried typing 5.6.7.8 in the box, but that doesn't work. Is there
a way of typing the input with "."";" or "/" to determine different values?
"John Vinson" wrote:
> On Mon, 14 Mar 2005 07:51:04 -0800, "idontgetit"
> <idontgetit@discussions.microsoft.com> wrote:
>
> >Is it possible to choose more than one value in the same field using the
> >"AND" criteria. For example: I have a listing of store #'s in one field and
> >a map of that store number in another field. I want to type store # 5.6.7.8
> >and 9 and have the query pull all 5 of those stores. What do I type as the
> >criteria?
> >Thank you VERY much!
>
> AND and OR are *NOT* English language conjuctions: they are Boolean
> logical operators. X AND Y is TRUE if both X and Y are TRUE
> expressions; if either is FALSE then X AND Y evaluates to FALSE.
>
> A query criterion is a logical expression; if it evaluates to TRUE
> then the record is retrieved, and if it's FALSE the record is skipped.
>
> So if you have [Store Number] = 5 AND [Store Number] = 6 you will
> never retrieve any stores, because for any individual record, the
> store number cannot possibly be equal to 5 and also equal to 6!
>
> Two suggestions: you can use OR criteria (i.e. retrieve this record if
> the store number is 5, OR the store number is 6); or you can use the
> IN() operator. Put
>
> IN (5, 6, 7, 8)
>
> on the criteria line and it will (again using OR logic) return records
> for any of the selected values.
>
> John W. Vinson[MVP]
>
- Next message: Paul McC: "Convert days like 2nd Monday or 4th Thursday to a Date"
- Previous message: PC Datasheet: "Re: Creating a Keyword Query"
- In reply to: John Vinson: "Re: Criteria"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|