Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!

query criteria

Discussion in 'Information Technology' started by Levans digital, Jul 28, 2006.

Tags:
  1. Levans digital

    Levans digital
    Expand Collapse
    Guest

    Hey All!

    I have a query in which I want to retrieve information based on data from
    either of 2 fields.
    The fields are:
    Released (CheckBox)
    PartDelivered (Checkbox)

    To show records that has both been released and PartDelivered I enter <>0 in
    the criteria field of both and it works.

    But I have another query I which I want to retrieve records that either has
    been released or PartDelivered

    Help!
     
  2. Loading...

    Similar Threads Forum Date
    Query about Jhatka Meat by Shooting in Head Sikh Sikhi Sikhism Aug 26, 2011
    Who is a sikh? A non sikh friend's query!! Sikh Sikhi Sikhism Apr 30, 2010
    General Query Hard Talk Sep 4, 2008
    Power of pauri's in Japji Sahib query Sikh Sikhi Sikhism Aug 17, 2006
    Sikhism a query Book Reviews & Editorials Aug 2, 2005

  3. Larry Linson

    Larry Linson
    Expand Collapse
    Guest

    "Levans digital" wrote

    > I have a query in which I want to retrieve
    > information based on data from
    > either of 2 fields.
    > The fields are:
    > Released (CheckBox)
    > PartDelivered (Checkbox)
    >
    > To show records that has both been released
    > and PartDelivered I enter <>0 in
    > the criteria field of both and it works.
    >
    > But I have another query I which I want to
    > retrieve records that either has
    > been released or PartDelivered


    Put your "<>0" criteria under each of Released and PartDelivered, but on
    separate lines in Query Builder View. Criteria on the same line are ANDed,
    and criteria on separate lines are ORed.

    Larry Linson
    Microsoft Access MVP
     
  4. james.igoe@gmail.com

    james.igoe@gmail.com
    Expand Collapse
    Guest

    For the second field, move the the <>o down one row into the OR of the
    criteria section. If they are on the same line they are treated as
    AND, but if on separate lines they are treated as OR.


    James Igoe

    james.igoe@gmail.com || http://code.comparative-advantage.com



    Levans digital wrote:
    > Hey All!
    >
    > I have a query in which I want to retrieve information based on data from
    > either of 2 fields.
    > The fields are:
    > Released (CheckBox)
    > PartDelivered (Checkbox)
    >
    > To show records that has both been released and PartDelivered I enter <>0 in
    > the criteria field of both and it works.
    >
    > But I have another query I which I want to retrieve records that either has
    > been released or PartDelivered
    >
    > Help!
     
  5. jleckrone@hotmail.com

    jleckrone@hotmail.com
    Expand Collapse
    Guest

    Your Where Clause would be:
    Where (Released = True And PartDelivered = False) OR (PartDelivered =
    True And Released = False)
     
  6. Larry Linson

    Larry Linson
    Expand Collapse
    Guest

    <jleckrone@hotmail.com> wrote

    > Your Where Clause would be:
    > Where (Released = True And PartDelivered = False) OR (PartDelivered =
    > True And Released = False)


    That would be an Exclusive Or. Unless that is spelled out, I always assume
    people are asking for Either Or.

    Larry Linson
    Microsoft Access MVP
     
  7. Levans digital

    Levans digital
    Expand Collapse
    Guest

    It works Great Thanks Guys


    "Larry Linson" wrote:

    > <jleckrone@hotmail.com> wrote
    >
    > > Your Where Clause would be:
    > > Where (Released = True And PartDelivered = False) OR (PartDelivered =
    > > True And Released = False)

    >
    > That would be an Exclusive Or. Unless that is spelled out, I always assume
    > people are asking for Either Or.
    >
    > Larry Linson
    > Microsoft Access MVP
    >
    >
    >
     

Share This Page